Skip to content

Commit 198d2e0

Browse files
committed
feat(namespace): ignore rancher annotations and labels
1 parent adcea66 commit 198d2e0

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

main.tf

+10
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,16 @@ resource "kubernetes_namespace" "gitlab_agent" {
6565
metadata {
6666
name = var.namespace
6767
}
68+
69+
lifecycle {
70+
ignore_changes = [
71+
metadata[0].annotations["cattle.io/status"],
72+
metadata[0].annotations["lifecycle.cattle.io/create.namespace-auth"],
73+
metadata[0].annotations["field.cattle.io/projectId"],
74+
metadata[0].annotations["management.cattle.io/no-default-sa-token"],
75+
metadata[0].labels["field.cattle.io/projectId"],
76+
]
77+
}
6878
}
6979

7080
resource "helm_release" "gitlab_agent" {

0 commit comments

Comments
 (0)