Skip to content

Commit

Permalink
Merge pull request openstack-k8s-operators#919 from vakwetu/fix-hack-…
Browse files Browse the repository at this point in the history
…script

Add mising webhooks to hack script
  • Loading branch information
openshift-merge-bot[bot] authored Jun 6, 2024
2 parents 1c7268c + 922083a commit 095a5ed
Showing 1 changed file with 112 additions and 0 deletions.
112 changes: 112 additions & 0 deletions hack/configure_local_webhook.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,118 @@ webhooks:
scope: '*'
sideEffects: None
timeoutSeconds: 10
---
apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingWebhookConfiguration
metadata:
name: vopenstackdataplanedeployment.kb.io
webhooks:
- admissionReviewVersions:
- v1
clientConfig:
caBundle: ${CA_BUNDLE}
url: https://${CRC_IP}:9443/validate-dataplane-openstack-org-v1beta1-openstackdataplanedeployment
failurePolicy: Fail
matchPolicy: Equivalent
name: vopenstackdataplanedeployment.kb.io
objectSelector: {}
rules:
- apiGroups:
- dataplane.openstack.org
apiVersions:
- v1beta1
operations:
- CREATE
- UPDATE
resources:
- openstackdataplanedeployments
scope: '*'
sideEffects: None
timeoutSeconds: 10
---
apiVersion: admissionregistration.k8s.io/v1
kind: MutatingWebhookConfiguration
metadata:
name: mopenstackdataplanedeployment.kb.io
webhooks:
- admissionReviewVersions:
- v1
clientConfig:
caBundle: ${CA_BUNDLE}
url: https://${CRC_IP}:9443/mutate-dataplane-openstack-org-v1beta1-openstackdataplanedeployment
failurePolicy: Fail
matchPolicy: Equivalent
name: mopenstackdataplanedeployment.kb.io
objectSelector: {}
rules:
- apiGroups:
- dataplane.openstack.org
apiVersions:
- v1beta1
operations:
- CREATE
- UPDATE
resources:
- openstackdataplanedeployments
scope: '*'
sideEffects: None
timeoutSeconds: 10
---
apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingWebhookConfiguration
metadata:
name: vopenstackdataplaneservice.kb.io
webhooks:
- admissionReviewVersions:
- v1
clientConfig:
caBundle: ${CA_BUNDLE}
url: https://${CRC_IP}:9443/validate-dataplane-openstack-org-v1beta1-openstackdataplaneservice
failurePolicy: Fail
matchPolicy: Equivalent
name: vopenstackdataplaneservice.kb.io
objectSelector: {}
rules:
- apiGroups:
- dataplane.openstack.org
apiVersions:
- v1beta1
operations:
- CREATE
- UPDATE
resources:
- openstackdataplaneservices
scope: '*'
sideEffects: None
timeoutSeconds: 10
---
apiVersion: admissionregistration.k8s.io/v1
kind: MutatingWebhookConfiguration
metadata:
name: mopenstackdataplaneservice.kb.io
webhooks:
- admissionReviewVersions:
- v1
clientConfig:
caBundle: ${CA_BUNDLE}
url: https://${CRC_IP}:9443/mutate-dataplane-openstack-org-v1beta1-openstackdataplaneservice
failurePolicy: Fail
matchPolicy: Equivalent
name: mopenstackdataplaneservice.kb.io
objectSelector: {}
rules:
- apiGroups:
- dataplane.openstack.org
apiVersions:
- v1beta1
operations:
- CREATE
- UPDATE
resources:
- openstackdataplaneservices
scope: '*'
sideEffects: None
timeoutSeconds: 10
EOF_CAT

oc apply -n openstack -f ${TMPDIR}/patch_webhook_configurations.yaml

0 comments on commit 095a5ed

Please sign in to comment.