Skip to content

Commit 3a2e10d

Browse files
authored
Merge pull request #677 from bart0sh/PR110-publish-on-operatorhub
Updates made during the latest operator publishing
2 parents 251c70c + c4483f4 commit 3a2e10d

File tree

3 files changed

+19
-6
lines changed

3 files changed

+19
-6
lines changed

DEVEL.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff 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+
201205
Generate package manifests with:
202206
```
203207
$ make packagemanifests OPERATOR_VERSION=0.X.Y
@@ -219,14 +223,18 @@ $ operator-sdk olm uninstall
219223
Review the package manifests by uploading the generated `packagemanifests` folder to
220224
https://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

227231
Copy 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

Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ BUILDER ?= "docker"
1313
EXTRA_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
1820
BUNDLE_IMG ?= intel-device-plugins-controller-bundle:$(OPERATOR_VERSION)
1921
# Options for 'bundle-build'
@@ -110,7 +112,7 @@ bundle:
110112
.PHONY: packagemanifests
111113
packagemanifests:
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

deployments/operator/manifests/bases/intel-device-plugins-operator.clusterserviceversion.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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
1316
spec:

0 commit comments

Comments
 (0)