Skip to content

Commit

Permalink
[release-v1.12] [SRVKE-1589] Reduce the scope for the Config validati…
Browse files Browse the repository at this point in the history
…on webhook to only the `knative-eventing` namespace. (knative#7792) (#579)

* Reduce the scope for the Config validation webhook to only the `knative-eventing` namespace. (knative#7792)

Config validation applies to system namespace only

The webhook is currently handling all ConfigMaps in the cluster.

Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>

* Run make generate-release

Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>

---------

Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
  • Loading branch information
pierDipi authored Apr 4, 2024
1 parent cbc4ca3 commit 665d688
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/core/webhooks/config-validation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,7 @@ webhooks:
name: config.webhook.eventing.knative.dev
namespaceSelector:
matchExpressions:
- key: kubernetes.io/metadata.name
operator: In
values: ["knative-eventing"]
timeoutSeconds: 10
3 changes: 3 additions & 0 deletions openshift/release/artifacts/eventing-core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4647,6 +4647,9 @@ webhooks:
name: config.webhook.eventing.knative.dev
namespaceSelector:
matchExpressions:
- key: kubernetes.io/metadata.name
operator: In
values: ["knative-eventing"]
timeoutSeconds: 10
---
# Copyright 2018 The Knative Authors
Expand Down

0 comments on commit 665d688

Please sign in to comment.