Skip to content

Commit 438495b

Browse files
committed
fixup! feat: Add preflight checks framework
Handle create events only
1 parent 4a518b3 commit 438495b

File tree

2 files changed

+1
-2
lines changed
  • charts/cluster-api-runtime-extensions-nutanix/templates
  • pkg/webhook/preflight

2 files changed

+1
-2
lines changed

charts/cluster-api-runtime-extensions-nutanix/templates/webhooks.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ webhooks:
7272
- '*'
7373
operations:
7474
- CREATE
75-
- UPDATE
7675
resources:
7776
- clusters
7877
sideEffects: None

pkg/webhook/preflight/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
// SPDX-License-Identifier: Apache-2.0
33
package preflight
44

5-
// +kubebuilder:webhook:path=/preflight-v1beta1-cluster,mutating=false,failurePolicy=fail,groups="cluster.x-k8s.io",resources=clusters,verbs=create;update,versions=*,name=preflight.cluster.caren.nutanix.com,admissionReviewVersions=v1,sideEffects=None,timeoutSeconds=30
5+
// +kubebuilder:webhook:path=/preflight-v1beta1-cluster,mutating=false,failurePolicy=fail,groups="cluster.x-k8s.io",resources=clusters,verbs=create,versions=*,name=preflight.cluster.caren.nutanix.com,admissionReviewVersions=v1,sideEffects=None,timeoutSeconds=30

0 commit comments

Comments
 (0)