🔧 Only ignore changes to spec

Thanks @soulshake for the tip.
This commit is contained in:
Jérôme Petazzoni
2021-11-01 19:30:30 +01:00
parent a3a8c824c8
commit f4837d9e28

View File

@@ -74,7 +74,9 @@ resource "kubernetes_deployment" "shpod_${index}" {
resource "kubernetes_service" "shpod_${index}" {
provider = kubernetes.cluster_${index}
lifecycle {
ignore_changes = all
# Folks might alter their shpod Service to expose extra ports.
# Don't reset their changes.
ignore_changes = [ spec ]
}
metadata {
name = "shpod"