Skip to content

Commit

Permalink
Merge pull request #1078 from abays/local_webhook_osversion
Browse files Browse the repository at this point in the history
Add missing local webhooks for OpenStackVersion
  • Loading branch information
openshift-merge-bot[bot] authored Sep 16, 2024
2 parents af72bfb + e52c755 commit 749d164
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions hack/configure_local_webhook.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,34 @@ webhooks:
timeoutSeconds: 10
---
apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingWebhookConfiguration
metadata:
name: vopenstackversion.kb.io
webhooks:
- admissionReviewVersions:
- v1
clientConfig:
caBundle: ${CA_BUNDLE}
url: https://${CRC_IP}:9443/validate-core-openstack-org-v1beta1-openstackversion
failurePolicy: Fail
matchPolicy: Equivalent
name: vopenstackversion.kb.io
objectSelector: {}
rules:
- apiGroups:
- core.openstack.org
apiVersions:
- v1beta1
operations:
- CREATE
- UPDATE
resources:
- openstackversions
scope: '*'
sideEffects: None
timeoutSeconds: 10
---
apiVersion: admissionregistration.k8s.io/v1
kind: MutatingWebhookConfiguration
metadata:
name: mopenstackcontrolplane.kb.io
Expand Down Expand Up @@ -142,6 +170,34 @@ webhooks:
timeoutSeconds: 10
---
apiVersion: admissionregistration.k8s.io/v1
kind: MutatingWebhookConfiguration
metadata:
name: mopenstackversion.kb.io
webhooks:
- admissionReviewVersions:
- v1
clientConfig:
caBundle: ${CA_BUNDLE}
url: https://${CRC_IP}:9443/mutate-core-openstack-org-v1beta1-openstackversion
failurePolicy: Fail
matchPolicy: Equivalent
name: mopenstackversion.kb.io
objectSelector: {}
rules:
- apiGroups:
- core.openstack.org
apiVersions:
- v1beta1
operations:
- CREATE
- UPDATE
resources:
- openstackversions
scope: '*'
sideEffects: None
timeoutSeconds: 10
---
apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingWebhookConfiguration
metadata:
name: vopenstackdataplanenodeset.kb.io
Expand Down

0 comments on commit 749d164

Please sign in to comment.