Skip to content

Commit

Permalink
Merge pull request #510 from iamniting/skip
Browse files Browse the repository at this point in the history
Add required changes to the makefile
  • Loading branch information
openshift-merge-bot[bot] authored Nov 21, 2024
2 parents 72594e8 + 316cb45 commit f415659
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 12 deletions.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,11 @@ checkout-bundle-timestamp:
.PHONY: bundle
bundle: manifests kustomize operator-sdk ## Generate bundle manifests and metadata, then validate generated files.
# Dependencies bundle
cd config/bundle && $(KUSTOMIZE) edit add annotation --force \
'olm.skipRange':"$(SKIP_RANGE)" \
'olm.properties':'[{"type": "olm.maxOpenShiftVersion", "value": "$(MAX_OCP_VERSION)"}]' && \
$(KUSTOMIZE) edit add patch --name odf-dependencies.v0.0.0 --kind ClusterServiceVersion \
--patch '[{"op": "replace", "path": "/spec/replaces", "value": "$(REPLACES)"}]'
$(KUSTOMIZE) build config/bundle | $(OPERATOR_SDK) generate bundle -q --overwrite --version $(VERSION) $(BUNDLE_METADATA_OPTS) \
--output-dir bundle/odf-dependencies --package odf-dependencies
$(OPERATOR_SDK) bundle validate bundle/odf-dependencies
Expand All @@ -194,7 +199,6 @@ bundle: manifests kustomize operator-sdk ## Generate bundle manifests and metada
cd config/console && $(KUSTOMIZE) edit set image odf-console=$(ODF_CONSOLE_IMG)
cd config/manifests/bases && $(KUSTOMIZE) edit add annotation --force \
'olm.skipRange':"$(SKIP_RANGE)" \
'operators.operatorframework.io/operator-type':"$(OPERATOR_TYPE)" \
'olm.properties':'[{"type": "olm.maxOpenShiftVersion", "value": "$(MAX_OCP_VERSION)"}]' && \
$(KUSTOMIZE) edit add patch --name odf-operator.v0.0.0 --kind ClusterServiceVersion \
--patch '[{"op": "replace", "path": "/spec/replaces", "value": "$(REPLACES)"}]'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ kind: ClusterServiceVersion
metadata:
annotations:
alm-examples: '[]'
createdAt: "2024-11-14T03:00:40Z"
createdAt: "2024-11-21T08:59:44Z"
olm.properties: '[{"type": "olm.maxOpenShiftVersion", "value": "4.19"}]'
olm.skipRange: ""
operatorframework.io/suggested-namespace: openshift-storage
operators.operatorframework.io/builder: operator-sdk-v1.31.0
operators.operatorframework.io/operator-type: non-standalone
Expand Down
4 changes: 3 additions & 1 deletion catalog/odf-dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ image: quay.io/ocs-dev/odf-dependencies-bundle:latest
name: odf-dependencies.v4.18.0
package: odf-dependencies
properties:
- type: olm.maxOpenShiftVersion
value: "4.19"
- type: olm.package
value:
packageName: odf-dependencies
Expand Down Expand Up @@ -41,7 +43,7 @@ properties:
versionRange: '>=4.17.0 <=4.18.0'
- type: olm.bundle.object
value:
data: eyJhcGlWZXJzaW9uIjoib3BlcmF0b3JzLmNvcmVvcy5jb20vdjFhbHBoYTEiLCJraW5kIjoiQ2x1c3RlclNlcnZpY2VWZXJzaW9uIiwibWV0YWRhdGEiOnsiYW5ub3RhdGlvbnMiOnsiYWxtLWV4YW1wbGVzIjoiW10iLCJjcmVhdGVkQXQiOiIyMDI0LTExLTE0VDAzOjAwOjQwWiIsIm9wZXJhdG9yZnJhbWV3b3JrLmlvL3N1Z2dlc3RlZC1uYW1lc3BhY2UiOiJvcGVuc2hpZnQtc3RvcmFnZSIsIm9wZXJhdG9ycy5vcGVyYXRvcmZyYW1ld29yay5pby9idWlsZGVyIjoib3BlcmF0b3Itc2RrLXYxLjMxLjAiLCJvcGVyYXRvcnMub3BlcmF0b3JmcmFtZXdvcmsuaW8vb3BlcmF0b3ItdHlwZSI6Im5vbi1zdGFuZGFsb25lIiwib3BlcmF0b3JzLm9wZXJhdG9yZnJhbWV3b3JrLmlvL3Byb2plY3RfbGF5b3V0IjoiZ28ua3ViZWJ1aWxkZXIuaW8vdjMifSwibGFiZWxzIjp7Im9wZXJhdG9yZnJhbWV3b3JrLmlvL2Fy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yZWQtaGF0LXN0b3JhZ2Uvb2RmLW9wZXJhdG9yIn1dLCJtYWludGFpbmVycyI6W3siZW1haWwiOiJvY3Mtc3VwcG9ydEByZWRoYXQuY29tIiwibmFtZSI6IlJlZCBIYXQgU3VwcG9ydCJ9XSwibWF0dXJpdHkiOiJhbHBoYSIsIm1pbkt1YmVWZXJzaW9uIjoiMS4xNi4wIiwicHJvdmlkZXIiOnsibmFtZSI6IlJlZCBIYXQifSwidmVyc2lvbiI6IjQuMTguMCJ9fQ==
relatedImages:
- image: quay.io/ocs-dev/odf-dependencies-bundle:latest
name: ""
Expand Down
10 changes: 10 additions & 0 deletions config/bundle/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,12 @@
resources:
- csv.yaml
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
commonAnnotations:
olm.properties: '[{"type": "olm.maxOpenShiftVersion", "value": "4.19"}]'
olm.skipRange: ""
patches:
- patch: '[{"op": "replace", "path": "/spec/replaces", "value": ""}]'
target:
kind: ClusterServiceVersion
name: odf-dependencies.v0.0.0
1 change: 0 additions & 1 deletion config/manifests/bases/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ patchesStrategicMerge:
commonAnnotations:
olm.properties: '[{"type": "olm.maxOpenShiftVersion", "value": "4.19"}]'
olm.skipRange: ""
operators.operatorframework.io/operator-type: standalone
patches:
- patch: '[{"op": "replace", "path": "/spec/replaces", "value": ""}]'
target:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ metadata:
operators.openshift.io/infrastructure-features: '["disconnected"]'
operators.openshift.io/valid-subscription: '["OpenShift Platform Plus","OpenShift
Data Foundation Essentials","OpenShift Data Foundation Advanced"]'
operators.operatorframework.io/operator-type: standalone
repository: https://github.com/red-hat-storage/odf-operator
support: Red Hat
vendors.odf.openshift.io/kind: '["storagecluster.ocs.openshift.io/v1", "flashsystemcluster.odf.ibm.com/v1alpha1"]'
Expand Down
7 changes: 0 additions & 7 deletions hack/make-bundle-vars.mk
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,6 @@ BUNDLE_METADATA_OPTS ?= $(BUNDLE_CHANNELS) $(BUNDLE_DEFAULT_CHANNEL)
# OPM_RENDER_OPTS will be used while rendering bundle images
OPM_RENDER_OPTS ?=

# Each CSV has the option to specify an annotation 'operators.operatorframework.io/operator-type',
# which is an annotation that is (only!) read by the OLM Console UI to determine the visibility of
# the Operator package/bundle in the Operator Hub UI.
#
# Current supported values are 'standalone' (visible) and 'non-standalone' (not visible)
OPERATOR_TYPE ?= standalone

# Each CSV has a replaces parameter that indicates which Operator it replaces.
# This builds a graph of CSVs that can be queried by OLM, and updates can be
# shared between channels. Channels can be thought of as entry points into
Expand Down
2 changes: 1 addition & 1 deletion hack/make-tools.mk
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ controller-gen: ## Download controller-gen locally if necessary.

KUSTOMIZE = $(BIN_DIR)/kustomize
kustomize: ## Download kustomize locally if necessary.
$(call go-get-tool,$(KUSTOMIZE),sigs.k8s.io/kustomize/kustomize/[email protected].5)
$(call go-get-tool,$(KUSTOMIZE),sigs.k8s.io/kustomize/kustomize/[email protected].7)

GINKGO = $(BIN_DIR)/ginkgo
ginkgo: ## Download ginkgo locally if necessary.
Expand Down

0 comments on commit f415659

Please sign in to comment.