Skip to content

Commit 6584e7e

Browse files
authored
Add matchCondition to webhook config (#376)
Should add some efficiency as it only lets the webhook fire when needed Signed-off-by: Brett Tofel <[email protected]>
1 parent 7603eaa commit 6584e7e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

config/base/manager/webhook/patch.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,8 @@
88
- op: add
99
path: /webhooks/0/clientConfig/service/port
1010
value: 443
11+
- op: add
12+
path: /webhooks/0/matchConditions
13+
value:
14+
- name: MissingOrIncorrectMetadataNameLabel
15+
expression: "!has(object.metadata.labels) || !('olm.operatorframework.io/metadata.name' in object.metadata.labels) || object.metadata.labels['olm.operatorframework.io/metadata.name'] != object.metadata.name"

0 commit comments

Comments
 (0)