Skip to content

Commit

Permalink
Merge pull request #248 from Azure/fix-kustomization-secret
Browse files Browse the repository at this point in the history
fix aks secret name
  • Loading branch information
arnaudlh committed Aug 26, 2021
2 parents 8995322 + 6b70ae1 commit 0f5eca2
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions caf_solution/add-ons/aks_azure_devops_agents/kustomization.tf
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,17 @@ data "kustomization_overlay" "azdopat-secret" {
}
}

patches {
patch = <<-EOF
- op: replace
path: /metadata/name
value: "${each.key}-${each.value.secret_name}"
EOF
target = {
kind = "AzureKeyVaultSecret"
}
}

patches {
patch = <<-EOF
- op: replace
Expand Down

0 comments on commit 0f5eca2

Please sign in to comment.