Skip to content

Commit afe62a9

Browse files
committed
Restore manual override of webhook manifests
Signed-off-by: Ed Snible <snible@us.ibm.com>
1 parent 750b5e2 commit afe62a9

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

kagenti-operator/config/webhook/manifests.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,28 @@ webhooks:
1313
path: /mutate-workloads-authbridge
1414
failurePolicy: Fail
1515
name: inject.kagenti.io
16+
namespaceSelector:
17+
matchExpressions:
18+
- key: kubernetes.io/metadata.name
19+
operator: NotIn
20+
values:
21+
- kube-system
22+
- kube-public
23+
- kube-node-lease
24+
- kagenti-operator-system
25+
matchLabels:
26+
kagenti-enabled: "true"
27+
objectSelector:
28+
matchExpressions:
29+
- key: kagenti.io/type
30+
operator: In
31+
values:
32+
- agent
33+
- tool
34+
- key: kagenti.io/inject
35+
operator: NotIn
36+
values:
37+
- disabled
1638
reinvocationPolicy: IfNeeded
1739
rules:
1840
- apiGroups:
@@ -24,6 +46,7 @@ webhooks:
2446
resources:
2547
- pods
2648
sideEffects: None
49+
timeoutSeconds: 10
2750
---
2851
apiVersion: admissionregistration.k8s.io/v1
2952
kind: ValidatingWebhookConfiguration

0 commit comments

Comments
 (0)