Skip to content

Commit

Permalink
Add CRDs under api
Browse files Browse the repository at this point in the history
This is something that has changed in the Makefile since we started.
Importantly, the functional tests in openstack-operator and possibly
other places expect this to be there so that the crds can be loaded.
  • Loading branch information
vakwetu authored and xek committed Nov 17, 2023
1 parent d16306f commit 0b11bbe
Show file tree
Hide file tree
Showing 5 changed files with 1,768 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ help: ## Display this help.

.PHONY: manifests
manifests: controller-gen ## Generate WebhookConfiguration, ClusterRole and CustomResourceDefinition objects.
$(CONTROLLER_GEN) rbac:roleName=manager-role crd webhook paths="./..." output:crd:artifacts:config=config/crd/bases
$(CONTROLLER_GEN) rbac:roleName=manager-role crd webhook paths="./..." output:crd:artifacts:config=config/crd/bases && \
rm -f api/bases/* && cp -a config/crd/bases api/

.PHONY: generate
generate: controller-gen ## Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations.
Expand Down
Loading

0 comments on commit 0b11bbe

Please sign in to comment.