Skip to content

Commit

Permalink
Move webhooks into pkg/webhooks
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mdbooth committed Mar 1, 2024
1 parent 23b9f34 commit a9e710e
Show file tree
Hide file tree
Showing 18 changed files with 610 additions and 691 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ generate-conversion-gen: $(CONVERSION_GEN)
.PHONY: generate-manifests
generate-manifests: $(CONTROLLER_GEN) ## Generate manifests e.g. CRD, RBAC etc.
$(CONTROLLER_GEN) \
paths=./api/... \
paths=./pkg/webhooks/... \
crd:crdVersions=v1 \
output:crd:dir=$(CRD_ROOT) \
output:webhook:dir=$(WEBHOOK_ROOT) \
Expand Down
156 changes: 0 additions & 156 deletions api/v1beta1/openstackcluster_webhook.go

This file was deleted.

32 changes: 0 additions & 32 deletions api/v1beta1/openstackclusterlist_webhook.go

This file was deleted.

78 changes: 0 additions & 78 deletions api/v1beta1/openstackclustertemplate_webhook.go

This file was deleted.

32 changes: 0 additions & 32 deletions api/v1beta1/openstackmachinelist_webhook.go

This file was deleted.

32 changes: 0 additions & 32 deletions api/v1beta1/openstackmachinetemplatelist_webhook.go

This file was deleted.

Loading

0 comments on commit a9e710e

Please sign in to comment.