diff --git a/internal/controller/eks/accessentry/zz_controller.go b/internal/controller/eks/accessentry/zz_controller.go index f29f1088b3..570b7c6c8f 100755 --- a/internal/controller/eks/accessentry/zz_controller.go +++ b/internal/controller/eks/accessentry/zz_controller.go @@ -32,7 +32,6 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { for _, i := range o.Provider.Resources["aws_eks_access_entry"].InitializerFns { initializers = append(initializers, i(mgr.GetClient())) } - initializers = append(initializers, managed.NewNameAsExternalName(mgr.GetClient())) cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} if o.SecretStoreConfigGVK != nil { cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK, connection.WithTLSConfig(o.ESSOptions.TLSConfig))) diff --git a/internal/controller/eks/accesspolicyassociation/zz_controller.go b/internal/controller/eks/accesspolicyassociation/zz_controller.go index 92d43924b6..fb8232a9ef 100755 --- a/internal/controller/eks/accesspolicyassociation/zz_controller.go +++ b/internal/controller/eks/accesspolicyassociation/zz_controller.go @@ -29,7 +29,6 @@ import ( func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { name := managed.ControllerName(v1beta1.AccessPolicyAssociation_GroupVersionKind.String()) var initializers managed.InitializerChain - initializers = append(initializers, managed.NewNameAsExternalName(mgr.GetClient())) cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} if o.SecretStoreConfigGVK != nil { cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK, connection.WithTLSConfig(o.ESSOptions.TLSConfig)))