This repository was archived by the owner on Mar 27, 2026. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +39
-0
lines changed
Expand file tree Collapse file tree 2 files changed +39
-0
lines changed Original file line number Diff line number Diff line change @@ -4,3 +4,34 @@ resources:
44
55configurations :
66- kustomizeconfig.yaml
7+
8+ patches :
9+ - patch : |-
10+ apiVersion: admissionregistration.k8s.io/v1
11+ kind: MutatingWebhookConfiguration
12+ metadata:
13+ name: mutating-webhook-configuration
14+ webhooks:
15+ - name: mpod-v1.kb.io
16+ matchConditions:
17+ - name: vpc-attachment-annotation-exists
18+ expression: >
19+ object != null &&
20+ has(object.metadata) &&
21+ has(object.metadata.annotations) &&
22+ "k8s.v1alpha.galactic.datumapis.com/vpc-attachment" in object.metadata.annotations
23+
24+ - patch : |-
25+ apiVersion: admissionregistration.k8s.io/v1
26+ kind: ValidatingWebhookConfiguration
27+ metadata:
28+ name: validating-webhook-configuration
29+ webhooks:
30+ - name: vpod-v1.kb.io
31+ matchConditions:
32+ - name: vpc-attachment-annotation-exists
33+ expression: >
34+ object != null &&
35+ has(object.metadata) &&
36+ has(object.metadata.annotations) &&
37+ "k8s.v1alpha.galactic.datumapis.com/vpc-attachment" in object.metadata.annotations
Original file line number Diff line number Diff line change @@ -754,6 +754,10 @@ webhooks:
754754 namespace : galactic-operator-system
755755 path : /mutate--v1-pod
756756 failurePolicy : Fail
757+ matchConditions :
758+ - expression : object != null && has(object.metadata) && has(object.metadata.annotations)
759+ && "k8s.v1alpha.galactic.datumapis.com/vpc-attachment" in object.metadata.annotations
760+ name : vpc-attachment-annotation-exists
757761 name : mpod-v1.kb.io
758762 rules :
759763 - apiGroups :
@@ -782,6 +786,10 @@ webhooks:
782786 namespace : galactic-operator-system
783787 path : /validate--v1-pod
784788 failurePolicy : Fail
789+ matchConditions :
790+ - expression : object != null && has(object.metadata) && has(object.metadata.annotations)
791+ && "k8s.v1alpha.galactic.datumapis.com/vpc-attachment" in object.metadata.annotations
792+ name : vpc-attachment-annotation-exists
785793 name : vpod-v1.kb.io
786794 rules :
787795 - apiGroups :
You can’t perform that action at this time.
0 commit comments