File tree Expand file tree Collapse file tree 5 files changed +29
-1
lines changed Expand file tree Collapse file tree 5 files changed +29
-1
lines changed Original file line number Diff line number Diff line change @@ -784,7 +784,7 @@ bundle: prepare-dirs $(CSV_FILE) release
784784
785785 @echo "Building release bundle for version $(VERSION)..."; \
786786 $(KUSTOMIZE) build --load-restrictor LoadRestrictionsNone $(CONFIG_MANIFESTS) | \
787- $(OPERATOR_SDK) generate bundle -q --overwrite --version "$(VERSION)" --default-channel="stable" --channels="stable";
787+ $(OPERATOR_SDK) generate bundle -q --overwrite --version "$(VERSION)" --kustomize-dir="$(CONFIG_MANIFESTS_TPL)" -- default-channel="stable" --channels="stable";
788788
789789 @echo "Patching CSV with replaces: $(CURRENT_VERSION)"; \
790790 $(AWK) '!/replaces:/' $(CSV_FILE) > $(CSV_FILE).tmp && mv $(CSV_FILE).tmp $(CSV_FILE); \
Original file line number Diff line number Diff line change @@ -4,3 +4,5 @@ resources:
44- ../service_account.yaml
55- ../leader_election_role.yaml
66- ../leader_election_role_binding.yaml
7+ - ../metrics_service.yaml
8+ - ../metrics_reader_role.yaml
Original file line number Diff line number Diff line change 1+ apiVersion : rbac.authorization.k8s.io/v1
2+ kind : ClusterRole
3+ metadata :
4+ name : metrics-reader
5+ rules :
6+ - nonResourceURLs :
7+ - /metrics
8+ verbs :
9+ - get
Original file line number Diff line number Diff line change 1+ apiVersion : v1
2+ kind : Service
3+ metadata :
4+ labels :
5+ control-plane : controller-manager
6+ name : controller-manager-metrics-service
7+ namespace : system
8+ spec :
9+ ports :
10+ - name : https
11+ port : 8443
12+ protocol : TCP
13+ targetPort : https
14+ selector :
15+ control-plane : controller-manager
Original file line number Diff line number Diff line change @@ -4,3 +4,5 @@ resources:
44- ../service_account.yaml
55- ../leader_election_role.yaml
66- ../leader_election_role_binding.yaml
7+ - ../metrics_service.yaml
8+ - ../metrics_reader_role.yaml
You can’t perform that action at this time.
0 commit comments