Skip to content

Commit 7ec53c2

Browse files
committed
Fix AWSManagedControlPlane controller to use TagUnmanagedNetworkResources feature gate
1 parent 2891a57 commit 7ec53c2

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

main.go

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -345,14 +345,15 @@ func setupEKSReconcilersAndWebhooks(ctx context.Context, mgr ctrl.Manager, awsSe
345345

346346
setupLog.Debug("enabling EKS control plane controller")
347347
if err := (&ekscontrolplanecontrollers.AWSManagedControlPlaneReconciler{
348-
Client: mgr.GetClient(),
349-
EnableIAM: enableIAM,
350-
AllowAdditionalRoles: allowAddRoles,
351-
Endpoints: awsServiceEndpoints,
352-
WatchFilterValue: watchFilterValue,
353-
ExternalResourceGC: externalResourceGC,
354-
AlternativeGCStrategy: alternativeGCStrategy,
355-
WaitInfraPeriod: waitInfraPeriod,
348+
Client: mgr.GetClient(),
349+
EnableIAM: enableIAM,
350+
AllowAdditionalRoles: allowAddRoles,
351+
Endpoints: awsServiceEndpoints,
352+
WatchFilterValue: watchFilterValue,
353+
ExternalResourceGC: externalResourceGC,
354+
AlternativeGCStrategy: alternativeGCStrategy,
355+
WaitInfraPeriod: waitInfraPeriod,
356+
TagUnmanagedNetworkResources: feature.Gates.Enabled(feature.TagUnmanagedNetworkResources),
356357
}).SetupWithManager(ctx, mgr, controller.Options{MaxConcurrentReconciles: awsClusterConcurrency, RecoverPanic: pointer.Bool(true)}); err != nil {
357358
setupLog.Error(err, "unable to create controller", "controller", "AWSManagedControlPlane")
358359
os.Exit(1)

0 commit comments

Comments
 (0)