Skip to content

Commit a9e710e

Browse files
committed
Move webhooks into pkg/webhooks
Moves webhooks from api to pkg/webhooks making only mechanical code changes except for the removal of the defaulting webhooks, because they weren't used. This results in there now being no mutating webhook configured.
1 parent 23b9f34 commit a9e710e

18 files changed

+610
-691
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ generate-conversion-gen: $(CONVERSION_GEN)
274274
.PHONY: generate-manifests
275275
generate-manifests: $(CONTROLLER_GEN) ## Generate manifests e.g. CRD, RBAC etc.
276276
$(CONTROLLER_GEN) \
277-
paths=./api/... \
277+
paths=./pkg/webhooks/... \
278278
crd:crdVersions=v1 \
279279
output:crd:dir=$(CRD_ROOT) \
280280
output:webhook:dir=$(WEBHOOK_ROOT) \

api/v1beta1/openstackcluster_webhook.go

Lines changed: 0 additions & 156 deletions
This file was deleted.

api/v1beta1/openstackclusterlist_webhook.go

Lines changed: 0 additions & 32 deletions
This file was deleted.

api/v1beta1/openstackclustertemplate_webhook.go

Lines changed: 0 additions & 78 deletions
This file was deleted.

api/v1beta1/openstackmachinelist_webhook.go

Lines changed: 0 additions & 32 deletions
This file was deleted.

api/v1beta1/openstackmachinetemplatelist_webhook.go

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)