File tree Expand file tree Collapse file tree 3 files changed +19
-6
lines changed
deployments/operator/manifests/bases Expand file tree Collapse file tree 3 files changed +19
-6
lines changed Original file line number Diff line number Diff line change @@ -198,6 +198,10 @@ There are few useful steps when working with changes to Device Plugins CRDs and
198198
199199## How to publish a new version of the Intel Device Plugins operator to operatorhub.io
200200
201+ Update metadata.annotations.containerImage and metadata.annotations.createdAT fields in the base CSV manifest file
202+ deployments/operator/manifests/bases/intel-device-plugins-operator.clusterserviceversion.yaml
203+ to match current operator version and current date
204+
201205Generate package manifests with:
202206```
203207$ make packagemanifests OPERATOR_VERSION=0.X.Y
@@ -219,14 +223,18 @@ $ operator-sdk olm uninstall
219223Review the package manifests by uploading the generated ` packagemanifests ` folder to
220224https://operatorhub.io -> Contribute -> Package Your Operator.
221225
222- Clone the [ Community Operators] ( https://github.com/operator-framework /community-operators ) repo:
226+ Clone the [ Community Operators] ( https://github.com/k8s-operatorhub /community-operators ) repo:
223227```
224- $ git clone https://github.com/operator-framework /community-operators
228+ $ git clone https://github.com/k8s-operatorhub /community-operators
225229```
226230
227231Copy the generated files to the Community Operators repo:
228232```
229- $ cp -r packagemanifests/* community-operators/upstream-community- operators/intel-device-plugins/
233+ $ cp -r packagemanifests/* community-operators/operators/intel-device-plugins/
230234```
231235
232- Finally, submit a PR.
236+ Submit a PR
237+
238+ Check operator page
239+ https://operatorhub.io/operator/intel-device-plugins-operator
240+ after PR is merged
Original file line number Diff line number Diff line change @@ -13,7 +13,9 @@ BUILDER ?= "docker"
1313EXTRA_BUILD_ARGS ?= ""
1414
1515# Current Operator version
16- OPERATOR_VERSION ?= 0.19.0
16+ OPERATOR_VERSION ?= 0.21.0
17+ # Previous Operator version
18+ OPERATOR_PREVIOUS_VERSION ?= 0.20.0
1719# Default bundle image tag
1820BUNDLE_IMG ?= intel-device-plugins-controller-bundle:$(OPERATOR_VERSION )
1921# Options for 'bundle-build'
@@ -110,7 +112,7 @@ bundle:
110112.PHONY : packagemanifests
111113packagemanifests :
112114 $(OPERATOR_SDK ) generate kustomize manifests -q --input-dir $(OLM_MANIFESTS ) --output-dir $(OLM_MANIFESTS ) --apis-dir pkg/apis
113- $(KUSTOMIZE ) build $(OLM_MANIFESTS ) | sed " s|intel-deviceplugin-operator:devel|intel-deviceplugin-operator:$( OPERATOR_VERSION) |" | $(OPERATOR_SDK ) generate packagemanifests -q --kustomize-dir $(OLM_MANIFESTS ) --version $(OPERATOR_VERSION ) $(BUNDLE_METADATA_OPTS )
115+ $(KUSTOMIZE ) build $(OLM_MANIFESTS ) | sed " s|intel-deviceplugin-operator:devel|intel-deviceplugin-operator:$( OPERATOR_VERSION) |" | $(OPERATOR_SDK ) generate packagemanifests -q --kustomize-dir $(OLM_MANIFESTS ) --version $(OPERATOR_VERSION ) --from-version $( OPERATOR_PREVIOUS_VERSION ) $(BUNDLE_METADATA_OPTS )
114116 # Remove unneeded resources
115117 rm packagemanifests/$(OPERATOR_VERSION ) /* service.yaml
116118 rm packagemanifests/$(OPERATOR_VERSION ) /* clusterrole.yaml
Original file line number Diff line number Diff line change @@ -5,9 +5,12 @@ metadata:
55 alm-examples : ' []'
66 capabilities : Basic Install
77 categories : Drivers and plugins
8+ containerImage : intel/intel-deviceplugin-operator:0.21.0
9+ createdAt : " 2021-08-18"
810 description : This One Operator is a Kubernetes custom controller whose goal is to serve the installation and lifecycle management of Intel device plugins for Kubernetes.
911 operators.operatorframework.io/builder : operator-sdk-v1.2.0
1012 operators.operatorframework.io/project_layout : go.kubebuilder.io/v2
13+ repository : https://github.com/intel/intel-device-plugins-for-kubernetes
1114 name : intel-device-plugins-operator.v0.0.0
1215 namespace : placeholder
1316spec :
You can’t perform that action at this time.
0 commit comments