Skip to content

Commit

Permalink
use the autoswitch
Browse files Browse the repository at this point in the history
  • Loading branch information
facchettos committed Apr 29, 2024
1 parent 10ec1d2 commit 1dd5d24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controllers/resources/persistentvolumeclaims/syncer.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const (

func New(ctx *synccontext.RegisterContext) (syncer.Object, error) {
syncSCToHost := ctx.Config.Sync.ToHost.StorageClasses.Enabled
syncSCFromHost := ctx.Config.Sync.FromHost.StorageClasses.Enabled
syncSCFromHost := ctx.Config.ControlPlane.Advanced.VirtualScheduler.Enabled || ctx.Config.Sync.FromHost.StorageClasses.Enabled == "true"
excludedAnnotations := []string{bindCompletedAnnotation, boundByControllerAnnotation, storageProvisionerAnnotation}
return &persistentVolumeClaimSyncer{
NamespacedTranslator: translator.NewNamespacedTranslator(ctx, "persistent-volume-claim", &corev1.PersistentVolumeClaim{}, excludedAnnotations...),
Expand Down

0 comments on commit 1dd5d24

Please sign in to comment.