Skip to content

Commit

Permalink
fix e2e, rbac generation, address review comments
Browse files Browse the repository at this point in the history
Signed-off-by: everettraven <everettraven@gmail.com>
  • Loading branch information
everettraven committed May 15, 2024
1 parent 97572b0 commit a2ef3bb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 14 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ clean: ## Remove binaries and test artifacts
.PHONY: generate
generate: $(CONTROLLER_GEN) ## Generate code and manifests.
$(CONTROLLER_GEN) object:headerFile="hack/boilerplate.go.txt" paths="./..."
$(CONTROLLER_GEN) rbac:roleName=manager-role crd webhook paths="./..." output:crd:artifacts:config=config/base/crd/bases
$(CONTROLLER_GEN) rbac:roleName=manager-role crd webhook paths="./..." output:crd:artifacts:config=config/base/crd/bases output:rbac:artifacts:config=config/base/rbac

.PHONY: fmt
fmt: ## Run go fmt against code.
Expand Down
6 changes: 3 additions & 3 deletions config/base/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ rules:
- apiGroups:
- catalogd.operatorframework.io
resources:
- catalogs
- clustercatalogs
verbs:
- create
- delete
Expand All @@ -19,13 +19,13 @@ rules:
- apiGroups:
- catalogd.operatorframework.io
resources:
- catalogs/finalizers
- clustercatalogs/finalizers
verbs:
- update
- apiGroups:
- catalogd.operatorframework.io
resources:
- catalogs/status
- clustercatalogs/status
verbs:
- get
- patch
Expand Down
10 changes: 0 additions & 10 deletions config/samples/core_v1alpha1_catalog.yaml

This file was deleted.

0 comments on commit a2ef3bb

Please sign in to comment.