Skip to content

Commit 4beea60

Browse files
authored
Set FileVolumesWithVmService FSS in workload cluster flavour (#3367)
1 parent 938627c commit 4beea60

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/syncer/admissionhandler/admissionhandler.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,8 @@ func StartWebhookServer(ctx context.Context, enableWebhookClientCertVerification
149149
featureGateBlockVolumeSnapshotEnabled = containerOrchestratorUtility.IsFSSEnabled(ctx, common.BlockVolumeSnapshot)
150150
featureGateByokEnabled = containerOrchestratorUtility.IsFSSEnabled(ctx, common.WCP_VMService_BYOK)
151151
featureIsSharedDiskEnabled = containerOrchestratorUtility.IsFSSEnabled(ctx, common.SharedDiskFss)
152+
featureFileVolumesWithVmServiceEnabled = containerOrchestratorUtility.IsFSSEnabled(ctx,
153+
common.FileVolumesWithVmService)
152154

153155
if err := startCNSCSIWebhookManager(ctx, enableWebhookClientCertVerification); err != nil {
154156
return fmt.Errorf("unable to run the webhook manager: %w", err)
@@ -169,8 +171,6 @@ func StartWebhookServer(ctx context.Context, enableWebhookClientCertVerification
169171
featureGateBlockVolumeSnapshotEnabled = containerOrchestratorUtility.IsFSSEnabled(ctx, common.BlockVolumeSnapshot)
170172
featureGateTopologyAwareFileVolumeEnabled = containerOrchestratorUtility.IsFSSEnabled(ctx,
171173
common.TopologyAwareFileVolume)
172-
featureFileVolumesWithVmServiceEnabled = containerOrchestratorUtility.IsFSSEnabled(ctx,
173-
common.FileVolumesWithVmService)
174174

175175
if featureGateCsiMigrationEnabled || featureGateBlockVolumeSnapshotEnabled {
176176
certs, err := tls.LoadX509KeyPair(cfg.WebHookConfig.CertFile, cfg.WebHookConfig.KeyFile)

0 commit comments

Comments
 (0)