From e52c755deb5fd360c47bd6abde911b72ab324714 Mon Sep 17 00:00:00 2001 From: Andrew Bays Date: Mon, 16 Sep 2024 17:28:58 +0000 Subject: [PATCH] Add missing local webhooks for OpenStackVersion --- hack/configure_local_webhook.sh | 56 +++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/hack/configure_local_webhook.sh b/hack/configure_local_webhook.sh index ca5f73dc4..555fad7d4 100755 --- a/hack/configure_local_webhook.sh +++ b/hack/configure_local_webhook.sh @@ -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 @@ -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