mirror of
https://gitlab.sarex.io/infra/terraform-contour-mirror.git
synced 2026-08-09 05:21:36 +03:00
final fix mb?
This commit is contained in:
parent
41620661a6
commit
995f39e29a
@ -103,6 +103,10 @@ resource "random_password" "secrets" {
|
|||||||
upper = true
|
upper = true
|
||||||
lower = true
|
lower = true
|
||||||
numeric = true
|
numeric = true
|
||||||
|
|
||||||
|
lifecycle {
|
||||||
|
ignore_changes = all
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "kubernetes_secret" "with_ignore" {
|
resource "kubernetes_secret" "with_ignore" {
|
||||||
@ -120,8 +124,8 @@ resource "kubernetes_secret" "with_ignore" {
|
|||||||
data = each.value.data
|
data = each.value.data
|
||||||
|
|
||||||
lifecycle {
|
lifecycle {
|
||||||
# type игнорируем чтобы не пересоздавать из-за opaque->Opaque
|
# Игнорируем data, type и metadata чтобы не было phantom updates
|
||||||
ignore_changes = [data, type]
|
ignore_changes = [data, type, metadata]
|
||||||
}
|
}
|
||||||
|
|
||||||
depends_on = [random_password.secrets]
|
depends_on = [random_password.secrets]
|
||||||
@ -142,8 +146,8 @@ resource "kubernetes_secret" "without_ignore" {
|
|||||||
data = each.value.data
|
data = each.value.data
|
||||||
|
|
||||||
lifecycle {
|
lifecycle {
|
||||||
# type игнорируем чтобы не пересоздавать из-за opaque->Opaque
|
# type и metadata игнорируем чтобы не было phantom updates
|
||||||
ignore_changes = [type]
|
ignore_changes = [type, metadata]
|
||||||
}
|
}
|
||||||
|
|
||||||
depends_on = [random_password.secrets]
|
depends_on = [random_password.secrets]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user