From 10d07e6ee0a42fac196d8e90ff092b3ddf52fa92 Mon Sep 17 00:00:00 2001 From: Casey Lee Date: Mon, 13 May 2019 18:11:10 -0700 Subject: [PATCH] =?UTF-8?q?[stable/opa]=20add=20namespace=20selector=20to?= =?UTF-8?q?=20OPA=20webhook=20resource=20and=20bump=20=E2=80=A6=20(#13508)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * stable/opa: add namespace selector to OPA webhook resource and bump version Signed-off-by: Casey Lee * stable/opa: update namespace label to be 'opt-out' vs 'opt-in' Signed-off-by: Casey Lee --- stable/opa/Chart.yaml | 2 +- stable/opa/templates/webhookconfiguration.yaml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/stable/opa/Chart.yaml b/stable/opa/Chart.yaml index 9409f898f5..ac9c133c62 100644 --- a/stable/opa/Chart.yaml +++ b/stable/opa/Chart.yaml @@ -6,7 +6,7 @@ keywords: - opa - admission control - policy -version: 1.4.1 +version: 1.4.2 home: https://www.openpolicyagent.org icon: https://raw.githubusercontent.com/open-policy-agent/opa/master/logo/logo.png sources: diff --git a/stable/opa/templates/webhookconfiguration.yaml b/stable/opa/templates/webhookconfiguration.yaml index 57ce7ae229..4419adbf70 100644 --- a/stable/opa/templates/webhookconfiguration.yaml +++ b/stable/opa/templates/webhookconfiguration.yaml @@ -13,6 +13,9 @@ metadata: {{ include "opa.labels.standard" . | indent 4 }} webhooks: - name: webhook.openpolicyagent.org + namespaceSelector: + matchExpressions: + - {key: openpolicyagent.org/webhook, operator: NotIn, values: [ignore]} failurePolicy: {{ .Values.admissionControllerFailurePolicy }} rules: {{ toYaml .Values.admissionControllerRules | indent 6 }}