Skip to content

Commit 65abe37

Browse files
authored
Merge pull request #365 from danielvegamyhre/automated-cherry-pick-of-#362-upstream-release-0.3
Automated cherry pick of #362: add webhook patches
2 parents 05acd93 + 21b4d32 commit 65abe37

File tree

3 files changed

+66
-0
lines changed

3 files changed

+66
-0
lines changed

config/components/webhook/kustomization.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,17 @@ resources:
44

55
configurations:
66
- kustomizeconfig.yaml
7+
8+
patches:
9+
- path: patches/mutating-patch.yaml
10+
target:
11+
group: admissionregistration.k8s.io
12+
version: v1
13+
kind: MutatingWebhookConfiguration
14+
name: mutating-webhook-configuration
15+
- path: patches/validating-patch.yaml
16+
target:
17+
group: admissionregistration.k8s.io
18+
version: v1
19+
kind: ValidatingWebhookConfiguration
20+
name: validating-webhook-configuration
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
- op: replace
2+
path: /webhooks/1
3+
value:
4+
admissionReviewVersions:
5+
- v1
6+
clientConfig:
7+
service:
8+
name: webhook-service
9+
namespace: system
10+
path: /mutate--v1-pod
11+
failurePolicy: Fail
12+
name: mpod.kb.io
13+
objectSelector:
14+
matchExpressions:
15+
- key: jobset.sigs.k8s.io/jobset-name
16+
operator: Exists
17+
rules:
18+
- apiGroups:
19+
- ""
20+
apiVersions:
21+
- v1
22+
operations:
23+
- CREATE
24+
resources:
25+
- pods
26+
sideEffects: None
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
- op: replace
2+
path: /webhooks/1
3+
value:
4+
admissionReviewVersions:
5+
- v1
6+
clientConfig:
7+
service:
8+
name: webhook-service
9+
namespace: system
10+
path: /validate--v1-pod
11+
failurePolicy: Fail
12+
name: vpod.kb.io
13+
objectSelector:
14+
matchExpressions:
15+
- key: jobset.sigs.k8s.io/jobset-name
16+
operator: Exists
17+
rules:
18+
- apiGroups:
19+
- ""
20+
apiVersions:
21+
- v1
22+
operations:
23+
- CREATE
24+
resources:
25+
- pods
26+
sideEffects: None

0 commit comments

Comments
 (0)