diff --git a/internal/controller/vault.go b/internal/controller/vault.go index f963eb8d..6a0c64d4 100644 --- a/internal/controller/vault.go +++ b/internal/controller/vault.go @@ -318,6 +318,19 @@ func (clctrl *ClusterController) WriteVaultSecrets() error { } vaultClient.SetToken(vaultRootToken) + if clctrl.CloudProvider == "akamai" { + secretToCreate := &v1.Secret{ + ObjectMeta: metav1.ObjectMeta{ + Name: "vault-secrets", + Namespace: "external-secrets-operator", + }, + Data: map[string][]byte{ + "vault-token": []byte(vaultRootToken), + }, + } + k8s.CreateSecretV2(kcfg.Clientset, secretToCreate) + } + _, err = vaultClient.KVv2("secret").Put(context.Background(), "external-dns", map[string]interface{}{ "token": externalDnsToken, }) diff --git a/providers/akamai/create.go b/providers/akamai/create.go index d4410e51..6491f1ea 100644 --- a/providers/akamai/create.go +++ b/providers/akamai/create.go @@ -92,8 +92,6 @@ func CreateAkamaiCluster(definition *pkgtypes.ClusterDefinition) error { return err } - // Needs wait after cluster create - err = ctrl.ClusterSecretsBootstrap() if err != nil { ctrl.HandleError(err.Error())