Skip to content

Commit 8dff546

Browse files
authored
Merge pull request #13 from worldcoin/feat/add-lifecycle-ignore-changes-for-load-balancer-class
INFRA-5223(kubernetes): Add lifecycle ignore changes for `load_balancer_class`
2 parents 307e268 + 021cff7 commit 8dff546

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

kubernetes-traefik-internal.tf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,13 @@ resource "kubernetes_service" "traefik_nlb" {
6060

6161
type = "LoadBalancer"
6262
}
63+
64+
lifecycle {
65+
# Ignore changes to 'load_balancer_class' because this attribute is
66+
# managed by the AWS Load Balancer Controller's webhook in the cluster.
67+
# This prevents a perpetual diff in the plan.
68+
ignore_changes = [spec[0].load_balancer_class]
69+
}
6370
}
6471

6572
module "nlb" {

0 commit comments

Comments
 (0)