Skip to content

Commit

Permalink
fix: gcpsm clustersecretstore deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
tunacinsoy committed Aug 22, 2024
1 parent b92968a commit d2f9594
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions terraform/app.tf
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ resource "kubectl_manifest" "external-secrets" {

# # File that holds the secret resource that have service account credentials
# # and clusterSecretStore resource that uses credentials to retrieve external secrets
# data "kubectl_file_documents" "gcpsm-secret" {
# content = file("../manifests/argocd/gcpsm-secret.yaml")
# }
data "kubectl_file_documents" "gcpsm-secret" {
content = file("../manifests/argocd/gcpsm-secret.yaml")
}

# resource "kubectl_manifest" "gcpsm-secrets" {
# depends_on = [
# kubectl_manifest.external-secrets,
# ]
# for_each = data.kubectl_file_documents.gcpsm-secret.manifests
# yaml_body = each.value
# }
resource "kubectl_manifest" "gcpsm-secrets" {
depends_on = [
kubectl_manifest.external-secrets,
]
for_each = data.kubectl_file_documents.gcpsm-secret.manifests
yaml_body = each.value
}

0 comments on commit d2f9594

Please sign in to comment.