diff --git a/modules/k8s-secret/main.tf b/modules/k8s-secret/main.tf index 489c611..bfa05ac 100644 --- a/modules/k8s-secret/main.tf +++ b/modules/k8s-secret/main.tf @@ -343,8 +343,6 @@ resource "kubernetes_secret" "with_ignore" { # Игнорируем data, type и metadata чтобы не было phantom updates ignore_changes = [data, type, metadata, wait_for_service_account_token] } - - depends_on = [random_password.secrets] } resource "kubernetes_secret" "without_ignore" { @@ -365,8 +363,6 @@ resource "kubernetes_secret" "without_ignore" { # type и metadata игнорируем чтобы не было phantom updates ignore_changes = [type, metadata, wait_for_service_account_token] } - - depends_on = [random_password.secrets] } # Vault-sink: same resolved (plaintext) data map, written to Vault KV v2 instead @@ -377,6 +373,4 @@ resource "vault_kv_secret_v2" "this" { mount = var.vault_kv_mount name = each.value.vault_path data_json = jsonencode(each.value.data) - - depends_on = [random_password.secrets] }