Skip to content

Commit 789b071

Browse files
committed
Cleanup: do not generate RBAC
We author RBAC manually and do not use generated RBAC. This commit updates `manifests` make target to stop generating RBAC and removes unused files.
1 parent 36da1eb commit 789b071

File tree

3 files changed

+2
-170
lines changed

3 files changed

+2
-170
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,9 +322,9 @@ deploy: manifests kustomize
322322
undeploy:
323323
$(KUSTOMIZE) build config/default | kubectl delete -f -
324324

325-
# Generate manifests e.g. CRD, RBAC etc.
325+
# Generate manifests e.g. CRD etc.
326326
manifests: controller-gen
327-
export PATH="$(PATH)"; export GOROOT=$(GOROOT); $(CONTROLLER_GEN) $(CRD_OPTIONS) rbac:roleName=manager-role paths=./... output:crd:artifacts:config=config/crd/bases
327+
export PATH="$(PATH)"; export GOROOT=$(GOROOT); $(CONTROLLER_GEN) $(CRD_OPTIONS) paths=./... output:crd:artifacts:config=config/crd/bases
328328
# copy the CRDs to the public folder
329329
cp config/crd/bases/* helm_chart/crds/
330330
cat "helm_chart/crds/"* > public/crds.yaml

config/rbac/role.yaml

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

config/rbac/role_binding.yaml

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

0 commit comments

Comments
 (0)