Skip to content

Commit

Permalink
fix: ignore namespace label and annotations changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsimonemms committed Dec 14, 2024
1 parent fd4234c commit 4e3424b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions modules/kubernetes/external-secrets.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ resource "kubernetes_namespace_v1" "external_secrets" {
metadata {
name = "external-secrets"
}

lifecycle {
ignore_changes = [
metadata[0].labels,
metadata[0].annotations,
]
}
}

resource "kubernetes_secret_v1" "bitwarden" {
Expand Down
7 changes: 7 additions & 0 deletions modules/kubernetes/metallb.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ resource "kubernetes_namespace_v1" "metallb" {
metadata {
name = "metallb-system"
}

lifecycle {
ignore_changes = [
metadata[0].labels,
metadata[0].annotations,
]
}
}

resource "kubernetes_config_map_v1" "metallb" {
Expand Down

0 comments on commit 4e3424b

Please sign in to comment.