Skip to content

Commit 7bf9b64

Browse files
committed
update 'make manifests'
1 parent c728cf6 commit 7bf9b64

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

Makefile

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -139,11 +139,11 @@ tidy:
139139
go mod tidy
140140

141141
.PHONY: manifests
142-
KUSTOMIZE_CATD_CRDS_DIR := config/base/catalogd/crd/bases
143-
KUSTOMIZE_CATD_RBAC_DIR := config/base/catalogd/rbac
144-
KUSTOMIZE_CATD_WEBHOOKS_DIR := config/base/catalogd/manager/webhook
145-
KUSTOMIZE_OPCON_CRDS_DIR := config/base/operator-controller/crd/bases
146-
KUSTOMIZE_OPCON_RBAC_DIR := config/base/operator-controller/rbac
142+
KUSTOMIZE_CATD_CRDS_DIR := config-new/base/catalogd/crd/bases
143+
KUSTOMIZE_CATD_RBAC_DIR := config-new/base/catalogd/rbac
144+
KUSTOMIZE_CATD_WEBHOOKS_DIR := config-new/base/catalogd/manager/webhook
145+
KUSTOMIZE_OPCON_CRDS_DIR := config-new/base/operator-controller/crd/bases
146+
KUSTOMIZE_OPCON_RBAC_DIR := config-new/base/operator-controller/rbac
147147
CRD_WORKING_DIR := crd_work_dir
148148
# Due to https://github.com/kubernetes-sigs/controller-tools/issues/837 we can't specify individual files
149149
# So we have to generate them together and then move them into place
@@ -157,7 +157,6 @@ manifests: $(CONTROLLER_GEN) #EXHELP Generate WebhookConfiguration, ClusterRole,
157157
$(CONTROLLER_GEN) --load-build-tags=$(GO_BUILD_TAGS) rbac:roleName=manager-role paths="./internal/operator-controller/..." output:rbac:artifacts:config=$(KUSTOMIZE_OPCON_RBAC_DIR)
158158
# Generate the remaining catalogd manifests
159159
$(CONTROLLER_GEN) --load-build-tags=$(GO_BUILD_TAGS) rbac:roleName=manager-role paths="./internal/catalogd/..." output:rbac:artifacts:config=$(KUSTOMIZE_CATD_RBAC_DIR)
160-
$(CONTROLLER_GEN) --load-build-tags=$(GO_BUILD_TAGS) webhook paths="./internal/catalogd/..." output:webhook:artifacts:config=$(KUSTOMIZE_CATD_WEBHOOKS_DIR)
161160

162161
.PHONY: generate
163162
generate: $(CONTROLLER_GEN) #EXHELP Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations.

internal/catalogd/webhook/cluster_catalog_webhook.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ import (
1111
ocv1 "github.com/operator-framework/operator-controller/api/v1"
1212
)
1313

14-
// +kubebuilder:webhook:admissionReviewVersions={v1},failurePolicy=Fail,groups=olm.operatorframework.io,mutating=true,name=inject-metadata-name.olm.operatorframework.io,path=/mutate-olm-operatorframework-io-v1-clustercatalog,resources=clustercatalogs,verbs=create;update,versions=v1,sideEffects=None,timeoutSeconds=10
15-
1614
// +kubebuilder:rbac:groups=olm.operatorframework.io,resources=clustercatalogs,verbs=get;list;watch;patch;update
1715

1816
// ClusterCatalog wraps the external v1.ClusterCatalog type and implements admission.Defaulter

internal/operator-controller/controllers/clusterextension_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ type InstalledBundleGetter interface {
9393
//+kubebuilder:rbac:groups=olm.operatorframework.io,resources=clusterextensions,verbs=get;list;watch;update;patch
9494
//+kubebuilder:rbac:groups=olm.operatorframework.io,resources=clusterextensions/status,verbs=update;patch
9595
//+kubebuilder:rbac:groups=olm.operatorframework.io,resources=clusterextensions/finalizers,verbs=update
96-
//+kubebuilder:rbac:namespace=system,groups=core,resources=secrets,verbs=create;update;patch;delete;deletecollection;get;list;watch
96+
//+kubebuilder:rbac:namespace=__NAMESPACE_PLACEHOLDER__,groups=core,resources=secrets,verbs=create;update;patch;delete;deletecollection;get;list;watch
9797
//+kubebuilder:rbac:groups=core,resources=serviceaccounts/token,verbs=create
9898
//+kubebuilder:rbac:groups=apiextensions.k8s.io,resources=customresourcedefinitions,verbs=get
9999
//+kubebuilder:rbac:groups=rbac.authorization.k8s.io,resources=clusterroles;clusterrolebindings;roles;rolebindings,verbs=list;watch

0 commit comments

Comments
 (0)