Skip to content

Commit

Permalink
Add OPA ignore label to opa and kube-system namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Mitchell Huang committed Jul 15, 2020
1 parent 3bf71b8 commit 09453ea
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions modules/opa/namespace.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
data "kubernetes_namespace" "opa_namespace" {
metadata {
name = "opa"
labels = {
"openpolicyagent.org/webhook" = "ignore"
}
}
}

data "kubernetes_namespace" "kube_system_namespace" {
metadata {
name = "kube-system"
labels = {
"openpolicyagent.org/webhook" = "ignore"
}
}
}

0 comments on commit 09453ea

Please sign in to comment.