From 45ac821c5cd70a7eba86c19fd562e48e90ab1521 Mon Sep 17 00:00:00 2001 From: Sergey Scheglov Date: Fri, 23 Feb 2024 03:34:55 +0500 Subject: [PATCH] Fix ServiceAccountStaticAccessKey resource --- config/external_name.go | 2 +- .../iam/serviceaccountstaticaccesskey/zz_controller.go | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/config/external_name.go b/config/external_name.go index e083d21..5e47326 100644 --- a/config/external_name.go +++ b/config/external_name.go @@ -20,7 +20,7 @@ var ExternalNameConfigs = map[string]config.ExternalName{ "yandex_iam_service_account_api_key": config.NameAsIdentifier, "yandex_iam_service_account_iam_policy": config.NameAsIdentifier, "yandex_iam_service_account_iam_binding": config.NameAsIdentifier, - "yandex_iam_service_account_static_access_key": config.NameAsIdentifier, + "yandex_iam_service_account_static_access_key": config.IdentifierFromProvider, "yandex_iam_service_account_iam_member": config.NameAsIdentifier, "yandex_organizationmanager_group": config.IdentifierFromProvider, "yandex_organizationmanager_group_iam_member": config.IdentifierFromProvider, diff --git a/internal/controller/iam/serviceaccountstaticaccesskey/zz_controller.go b/internal/controller/iam/serviceaccountstaticaccesskey/zz_controller.go index 945b5c6..b07754a 100755 --- a/internal/controller/iam/serviceaccountstaticaccesskey/zz_controller.go +++ b/internal/controller/iam/serviceaccountstaticaccesskey/zz_controller.go @@ -31,7 +31,6 @@ import ( func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { name := managed.ControllerName(v1alpha1.ServiceAccountStaticAccessKey_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)))