Skip to content

Commit

Permalink
Merge pull request #50 from fluxcd/fix/github-example
Browse files Browse the repository at this point in the history
Ignore label changes to flux-system namespace
  • Loading branch information
Philip Laine authored Nov 23, 2020
2 parents c35a448 + 92317b1 commit 2d17889
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ resource "kubernetes_namespace" "flux_system" {
metadata {
name = "flux-system"
}
lifecycle {
ignore_changes = [
metadata[0].labels,
]
}
}
# Split multi-doc YAML with
Expand Down
6 changes: 6 additions & 0 deletions docs/guides/github.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,12 @@ resource "kubernetes_namespace" "flux_system" {
metadata {
name = "flux-system"
}
lifecycle {
ignore_changes = [
metadata[0].labels,
]
}
}
data "kubectl_file_documents" "install" {
Expand Down
6 changes: 6 additions & 0 deletions examples/github/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ resource "kubernetes_namespace" "flux_system" {
metadata {
name = "flux-system"
}

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

data "kubectl_file_documents" "install" {
Expand Down

0 comments on commit 2d17889

Please sign in to comment.