From ab907bf449cba3e6c66ef31fc1c072884734675b Mon Sep 17 00:00:00 2001 From: "Domene Esteban, Nil {DISB~SANT CUGAT DIA}" Date: Tue, 10 Oct 2023 12:04:38 +0200 Subject: [PATCH] Removed the setExternalName from postCreate Signed-off-by: Domene Esteban, Nil {DISB~SANT CUGAT DIA} --- pkg/controller/kinesis/stream/setup.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/controller/kinesis/stream/setup.go b/pkg/controller/kinesis/stream/setup.go index 080883f3bd..d92b4040d2 100644 --- a/pkg/controller/kinesis/stream/setup.go +++ b/pkg/controller/kinesis/stream/setup.go @@ -58,6 +58,10 @@ func SetupStream(mgr ctrl.Manager, o controller.Options) error { reconcilerOpts := []managed.ReconcilerOption{ managed.WithExternalConnecter(&connector{kube: mgr.GetClient(), opts: opts}), + managed.WithReferenceResolver(managed.NewAPISimpleReferenceResolver(mgr.GetClient())), + managed.WithInitializers( + managed.NewDefaultProviderConfig(mgr.GetClient()), + managed.NewNameAsExternalName(mgr.GetClient())), managed.WithPollInterval(o.PollInterval), managed.WithLogger(o.Logger.WithValues("controller", name)), managed.WithRecorder(event.NewAPIRecorder(mgr.GetEventRecorderFor(name))), @@ -124,7 +128,6 @@ func postCreate(_ context.Context, cr *svcapitypes.Stream, obj *svcsdk.CreateStr if err != nil { return managed.ExternalCreation{}, err } - meta.SetExternalName(cr, *awsclients.String(meta.GetExternalName(cr))) return managed.ExternalCreation{ExternalNameAssigned: true}, nil }