Skip to content

Commit

Permalink
controller: adds yaml to install and deploy controller
Browse files Browse the repository at this point in the history
this commit adds raw yaml generated using kustomize
in deploy/controller/ which can be used by others to
directly deploy the controller

Fixes: #105

Signed-off-by: yati1998 <ypadia@redhat.com>
  • Loading branch information
yati1998 committed Jan 28, 2022
1 parent 742e78a commit 0b7632a
Show file tree
Hide file tree
Showing 2 changed files with 1,053 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,10 @@ help: ## Display this help.
##@ Development

.PHONY: manifests
manifests: controller-gen ## Generate WebhookConfiguration, ClusterRole and CustomResourceDefinition objects.
manifests: controller-gen kustomize## Generate WebhookConfiguration, ClusterRole and CustomResourceDefinition objects.
$(CONTROLLER_GEN) rbac:roleName=manager-role crd webhook paths="{./api/...,./cmd/...,./controllers/...,./sidecar/...}" output:crd:artifacts:config=config/crd/bases
cd config/manager && $(KUSTOMIZE) edit set image controller=${CONTROLLER_IMG} $(KUSTOMIZE_RBAC_PROXY)
$(KUSTOMIZE) build config/default > deploy/controller/setup-controller.yaml

# generate the <package-name>.clusterserviceversion.yaml
config/manifests/bases/$(PACKAGE_NAME).clusterserviceversion.yaml: config/manifests/bases/clusterserviceversion.yaml.in
Expand Down
Loading

0 comments on commit 0b7632a

Please sign in to comment.