Skip to content

Commit

Permalink
fix: rename to test or test fails
Browse files Browse the repository at this point in the history
  • Loading branch information
dfroberg committed Feb 29, 2024
1 parent 95ebf85 commit c0d1086
Showing 1 changed file with 1 addition and 42 deletions.
43 changes: 1 addition & 42 deletions _examples/secrets/dynamic_secret.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ locals {
# }
# }

resource "kubectl_manifest" "test_mock" {
resource "kubectl_manifest" "test" {
sensitive_fields = ["stringData"]
apply_only = true
force_new = true
Expand Down Expand Up @@ -57,44 +57,3 @@ resource "kubectl_manifest" "test_mock" {
}
})
}
# resource "kubectl_manifest" "argocd_applications_credentials_bare_secrets_mock" {
# sensitive_fields = ["stringData"]
# apply_only = true
# force_new = true
# for_each = { for k, v in var.mock_data : k => v if try(v.ssh_key_secret_name, null) != null }

# yaml_body = yamlencode({
# apiVersion = "v1"
# kind = "Secret"
# type = "Opaque"
# metadata = {
# name = "name-here-${each.key}-repo-secret"
# namespace = local.argocd_namespace
# annotations = {
# "managed-by" : "argocd.argoproj.io"
# "argocd.argoproj.io/compare-options" : "IgnoreExtra"
# "argocd.argoproj.io/sync-options" : "Prune=false"
# }
# labels = {
# "argocd.argoproj.io/secret-type" : each.key == "generic" ? "repo-creds" : "repository"
# "app.kubernetes.io/part-of" : "argocd"
# "app.kubernetes.io/name" : "argocd-secret"
# }
# }

# stringData = length(regexall("git@", each.value.repo_url)) > 0 ? {
# name = "${each.key}-repo"
# insecure = tostring(lookup(each.value, "insecure", false))
# sshPrivateKey = "mock-ssh-private-key"
# type = "git"
# url = each.value.repo_url
# } : {
# name = "${each.key}-repo"
# insecure = tostring(lookup(each.value, "insecure", false))
# username = "mock-username"
# password = "mock-password"
# type = "git"
# url = each.value.repo_url
# }
# })
# }

0 comments on commit c0d1086

Please sign in to comment.