Skip to content

Commit

Permalink
fix: order of volumesnapshot syncers
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianKramm committed Jul 19, 2024
1 parent bbf75a4 commit 8dbf205
Show file tree
Hide file tree
Showing 12 changed files with 704 additions and 701 deletions.
122 changes: 0 additions & 122 deletions pkg/controllers/resources/volumesnapshots/volumesnapshotclasses/crd.go

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
syncer "github.com/loft-sh/vcluster/pkg/controllers/syncer/types"
"github.com/loft-sh/vcluster/pkg/mappings"
"github.com/loft-sh/vcluster/pkg/patcher"
"github.com/loft-sh/vcluster/pkg/util"
utilerrors "k8s.io/apimachinery/pkg/util/errors"

volumesnapshotv1 "github.com/kubernetes-csi/external-snapshotter/client/v4/apis/volumesnapshot/v1"
Expand All @@ -26,12 +25,6 @@ type volumeSnapshotClassSyncer struct {
syncer.Translator
}

var _ syncer.Initializer = &volumeSnapshotClassSyncer{}

func (s *volumeSnapshotClassSyncer) Init(registerContext *synccontext.RegisterContext) error {
return util.EnsureCRD(registerContext.Context, registerContext.VirtualManager.GetConfig(), []byte(volumeSnapshotClassesCRD), volumesnapshotv1.SchemeGroupVersion.WithKind("VolumeSnapshotClass"))
}

var _ syncer.ToVirtualSyncer = &volumeSnapshotClassSyncer{}

func (s *volumeSnapshotClassSyncer) SyncToVirtual(ctx *synccontext.SyncContext, pObj client.Object) (ctrl.Result, error) {
Expand Down
Loading

0 comments on commit 8dbf205

Please sign in to comment.