diff --git a/Makefile b/Makefile index b6f061fa..1c17f525 100644 --- a/Makefile +++ b/Makefile @@ -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. diff --git a/config/base/rbac/role.yaml b/config/base/rbac/role.yaml index 66f6922a..7e4ec5e7 100644 --- a/config/base/rbac/role.yaml +++ b/config/base/rbac/role.yaml @@ -7,7 +7,7 @@ rules: - apiGroups: - catalogd.operatorframework.io resources: - - catalogs + - clustercatalogs verbs: - create - delete @@ -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 diff --git a/config/samples/core_v1alpha1_catalog.yaml b/config/samples/core_v1alpha1_catalog.yaml deleted file mode 100644 index 250e8325..00000000 --- a/config/samples/core_v1alpha1_catalog.yaml +++ /dev/null @@ -1,10 +0,0 @@ -apiVersion: catalogd.operatorframework.io/v1alpha1 -kind: ClusterCatalog -metadata: - name: operatorhubio -spec: - source: - type: image - image: - pollInterval: 24h - ref: quay.io/operatorhubio/catalog:latest