Template:Kubernetes secret sops

From wikieduonline
Jump to navigation Jump to search
resource "kubernetes_secret" "argo_cd_github_creds" {
 data = {
   password = data.sops_file.argocd.data["github-credentials.password"]
   url      = "https://github.com/YourOrg"
   username = data.sops_file.argocd.data["github-credentials.username"]
 }
 metadata {
   labels = {
     "argocd.argoproj.io/secret-type" = "repo-creds"
   }
   name      = "github-https-creds"
   namespace = "argocd"
 }
}

Advertising: