++ fix random password dependency

This commit is contained in:
Kochetkov S 2026-07-20 13:38:44 +03:00
parent be5133a954
commit 38ad66d383

View File

@ -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]
}