final fix mb?

This commit is contained in:
Work 2026-01-28 14:42:12 +03:00
parent 41620661a6
commit 995f39e29a

View File

@ -103,6 +103,10 @@ resource "random_password" "secrets" {
upper = true
lower = true
numeric = true
lifecycle {
ignore_changes = all
}
}
resource "kubernetes_secret" "with_ignore" {
@ -120,8 +124,8 @@ resource "kubernetes_secret" "with_ignore" {
data = each.value.data
lifecycle {
# type игнорируем чтобы не пересоздавать из-за opaque->Opaque
ignore_changes = [data, type]
# Игнорируем data, type и metadata чтобы не было phantom updates
ignore_changes = [data, type, metadata]
}
depends_on = [random_password.secrets]
@ -142,8 +146,8 @@ resource "kubernetes_secret" "without_ignore" {
data = each.value.data
lifecycle {
# type игнорируем чтобы не пересоздавать из-за opaque->Opaque
ignore_changes = [type]
# type и metadata игнорируем чтобы не было phantom updates
ignore_changes = [type, metadata]
}
depends_on = [random_password.secrets]