Skip to content

Commit

Permalink
bundle: update versions
Browse files Browse the repository at this point in the history
- fix catalog-build
- update noobaa version
- update csi-addons version
- CSV from 4.17 to 4.18

Signed-off-by: Rewant Soni <resoni@redhat.com>
  • Loading branch information
rewantsoni committed Feb 27, 2025
1 parent ba71195 commit 707c782
Show file tree
Hide file tree
Showing 8 changed files with 47 additions and 21 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ bundle: manifests kustomize operator-sdk yq ## Generate bundle manifests and met
$(OPERATOR_SDK) generate bundle -q --overwrite --version $(VERSION) $(BUNDLE_METADATA_OPTS) --extra-service-accounts="$$($(KUSTOMIZE) build $(MANIFEST_PATH) | $(YQ) 'select(.kind == "ServiceAccount") | .metadata.name' -N | paste -sd "," -)"
yq -i '.dependencies[0].value.packageName = "'${CSI_ADDONS_PACKAGE_NAME}'"' config/metadata/dependencies.yaml
yq -i '.dependencies[0].value.version = ">='${CSI_ADDONS_PACKAGE_VERSION}'"' config/metadata/dependencies.yaml
yq -i '.dependencies[1].value.version = ">='${CEPH_CSI_PACKAGE_VERSION}'"' config/metadata/dependencies.yaml
yq -i '.dependencies[2].value.version = ">='${NOOBAA_PACKAGE_VERSION}'"' config/metadata/dependencies.yaml
cp config/metadata/* bundle/metadata/
./hack/create-csi-images-manifest.sh
$(OPERATOR_SDK) bundle validate ./bundle
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: csi-images-v4.15
name: csi-images-v4.18
labels:
ocs.openshift.io/csi-images-version: v4.15
ocs.openshift.io/csi-images-version: v4.18
data:
provisioner: registry.k8s.io/sig-storage/csi-provisioner:v4.0.0
attacher: registry.k8s.io/sig-storage/csi-attacher:v4.5.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: csi-images-v4.16
name: csi-images-v4.19
labels:
ocs.openshift.io/csi-images-version: v4.16
ocs.openshift.io/csi-images-version: v4.19
data:
provisioner: registry.k8s.io/sig-storage/csi-provisioner:v4.0.0
attacher: registry.k8s.io/sig-storage/csi-attacher:v4.5.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
categories: Storage
console.openshift.io/plugins: '["odf-client-console"]'
containerImage: quay.io/ocs-dev/ocs-client-operator:latest
createdAt: "2024-11-27T03:54:42Z"
createdAt: "2025-02-27T17:24:53Z"
description: OpenShift Data Foundation client operator enables consumption of
storage services from a remote centralized OpenShift Data Foundation provider
cluster.
Expand All @@ -21,7 +21,7 @@ metadata:
support: Red Hat
labels:
operatorframework.io/arch.amd64: supported
name: ocs-client-operator.v4.18.0
name: ocs-client-operator.v4.19.0
namespace: placeholder
spec:
apiservicedefinitions: {}
Expand Down Expand Up @@ -723,4 +723,4 @@ spec:
maturity: alpha
provider:
name: Red Hat
version: 4.18.0
version: 4.19.0
6 changes: 3 additions & 3 deletions bundle/metadata/dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ dependencies:
- type: olm.package
value:
packageName: csi-addons
version: '>=0.10.0'
version: '>=0.11.0'
- type: olm.package
value:
packageName: cephcsi-operator
version: 4.18.0
version: '>=4.17.0'
- type: olm.package
value:
packageName: noobaa-operator
version: ">=5.17.0 <=5.18.0"
version: ">=5.19.0"
6 changes: 3 additions & 3 deletions config/metadata/dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ dependencies:
- type: olm.package
value:
packageName: csi-addons
version: '>=0.10.0'
version: '>=0.11.0'
- type: olm.package
value:
packageName: cephcsi-operator
version: 4.18.0
version: '>=4.17.0'
- type: olm.package
value:
packageName: noobaa-operator
version: ">=5.17.0 <=5.18.0"
version: ">=5.19.0"
13 changes: 12 additions & 1 deletion hack/build-catalog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ mkdir catalog

${OPM} render --output=yaml ${BUNDLE_IMG} > catalog/ocs-client-bundle.yaml
${OPM} render --output=yaml ${CSI_ADDONS_BUNDLE_IMG} > catalog/csi-adddons-bundle.yaml
${OPM} render --output=yaml ${CEPH_CSI_BUNDLE_IMG} > catalog/cephcsi-operator-bundle.yaml
${OPM} render --output=yaml ${NOOBAA_BUNDLE_IMG} > catalog/noobaa-operator-bundle.yaml

cat << EOF >> catalog/index.yaml
Expand Down Expand Up @@ -39,7 +40,17 @@ schema: olm.channel
package: noobaa-operator
name: alpha
entries:
- name: $NOOBAA_BUNDLE_NAME.v$NOOBAA_BUNDLE_VERSION
- name: $NOOBAA_BUNDLE_NAME.$NOOBAA_BUNDLE_VERSION
---
defaultChannel: alpha
name: $CEPH_CSI_BUNDLE_NAME
schema: olm.package
---
schema: olm.channel
package: cephcsi-operator
name: alpha
entries:
- name: $CEPH_CSI_BUNDLE_NAME.$CEPH_CSI_BUNDLE_VERSION
EOF

${OPM} validate catalog
Expand Down
27 changes: 20 additions & 7 deletions hack/make-bundle-vars.mk
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# To re-generate a bundle for another specific version without changing the standard setup, you can:
# - use the VERSION as arg of the bundle target (e.g make bundle VERSION=0.0.2)
# - use environment variables to overwrite this value (e.g export VERSION=0.0.2)
VERSION ?= 4.18.0
VERSION ?= 4.19.0

# DEFAULT_CHANNEL defines the default channel used in the bundle.
# Add a new line here if you would like to change its default config. (E.g DEFAULT_CHANNEL = "stable")
Expand Down Expand Up @@ -49,13 +49,13 @@ IMAGE_TAG ?= latest
IMAGE_NAME ?= ocs-client-operator
BUNDLE_IMAGE_NAME ?= $(IMAGE_NAME)-bundle
CSI_ADDONS_BUNDLE_IMAGE_NAME ?= k8s-bundle
CSI_ADDONS_BUNDLE_IMAGE_TAG ?= v0.10.0
CSI_ADDONS_BUNDLE_IMAGE_TAG ?= v0.11.0
CATALOG_IMAGE_NAME ?= $(IMAGE_NAME)-catalog

NOOBAA_BUNDLE_NAME ?= noobaa-operator
NOOBAA_BUNDLE_IMG_NAME ?= $(NOOBAA_BUNDLE_NAME)-bundle
NOOBAA_BUNDLE_VERSION ?= v5.18.0
NOOBAA_BUNDLE_IMG_TAG ?= master-20240514
NOOBAA_BUNDLE_VERSION ?= v5.19.0
NOOBAA_BUNDLE_IMG_TAG ?= master-20250226
NOOBAA_BUNDLE_IMG_NAMESPACE ?= noobaa
NOOBAA_BUNDLE_IMG ?= $(IMAGE_REGISTRY)/$(NOOBAA_BUNDLE_IMG_NAMESPACE)/$(NOOBAA_BUNDLE_IMG_NAME):$(NOOBAA_BUNDLE_IMG_TAG)

Expand All @@ -64,6 +64,12 @@ OCS_CLIENT_CONSOLE_IMG_TAG ?= latest
OCS_CLIENT_CONSOLE_IMG_LOCATION ?= $(IMAGE_REGISTRY)/$(REGISTRY_NAMESPACE)
OCS_CLIENT_CONSOLE_IMG ?= $(OCS_CLIENT_CONSOLE_IMG_LOCATION)/$(OCS_CLIENT_CONSOLE_IMG_NAME):$(OCS_CLIENT_CONSOLE_IMG_TAG)

CEPH_CSI_BUNDLE_NAME ?= cephcsi-operator
CEPH_CSI_REGISTRY_NAMESPACE ?= ocs-dev
CEPH_CSI_BUNDLE_IMG_NAME ?= $(CEPH_CSI_BUNDLE_NAME)-bundle
CEPH_CSI_BUNDLE_VERSION ?= v4.17.0
CEPH_CSI_BUNDLE_IMG_TAG ?= release-4.18-24cfebf

# IMG defines the image used for the operator.
IMG ?= $(IMAGE_REGISTRY)/$(REGISTRY_NAMESPACE)/$(IMAGE_NAME):$(IMAGE_TAG)

Expand All @@ -72,6 +78,7 @@ BUNDLE_IMG ?= $(IMAGE_REGISTRY)/$(REGISTRY_NAMESPACE)/$(BUNDLE_IMAGE_NAME):$(IMA

CSI_ADDONS_BUNDLE_IMG ?= $(CSI_ADDONS_IMAGE_REGISTRY)/$(CSI_ADDONS_REGISTRY_NAMESPACE)/$(CSI_ADDONS_BUNDLE_IMAGE_NAME):$(CSI_ADDONS_BUNDLE_IMAGE_TAG)

CEPH_CSI_BUNDLE_IMG ?= $(IMAGE_REGISTRY)/$(CEPH_CSI_REGISTRY_NAMESPACE)/$(CEPH_CSI_BUNDLE_IMG_NAME):$(CEPH_CSI_BUNDLE_IMG_TAG)

# CATALOG_IMG defines the image used for the catalog.
CATALOG_IMG ?= $(IMAGE_REGISTRY)/$(REGISTRY_NAMESPACE)/$(CATALOG_IMAGE_NAME):$(IMAGE_TAG)
Expand All @@ -81,7 +88,7 @@ CRD_OPTIONS ?= "crd:generateEmbeddedObjectMeta=true"

# A comma-separated list of bundle images (e.g. make catalog-build BUNDLE_IMGS=example.com/operator-bundle:v0.1.0,example.com/operator-bundle:v0.2.0).
# These images MUST exist in a registry and be pull-able.
BUNDLE_IMGS ?= $(shell echo $(BUNDLE_IMG) $(CSI_ADDONS_BUNDLE_IMG) | sed "s/ /,/g")
BUNDLE_IMGS ?= $(shell echo $(BUNDLE_IMG) $(CSI_ADDONS_BUNDLE_IMG) $(CEPH_CSI_BUNDLE_IMG) $(NOOBAA_BUNDLE_IMG) | sed "s/ /,/g")

# Set CATALOG_BASE_IMG to an existing catalog image tag to add $BUNDLE_IMGS to that image.
ifneq ($(origin CATALOG_BASE_IMG), undefined)
Expand All @@ -106,7 +113,13 @@ endif

# csi-addons dependencies
CSI_ADDONS_PACKAGE_NAME ?= csi-addons
CSI_ADDONS_PACKAGE_VERSION ?= 0.10.0
CSI_ADDONS_PACKAGE_VERSION ?= 0.11.0

# ceph-csi-operator dependencies
CEPH_CSI_PACKAGE_VERSION ?= 4.17.0

# ceph-csi-operator dependencies
NOOBAA_PACKAGE_VERSION ?= 5.19.0

# The following variables are here as a convenience for developers so we don't have
# to retype things, because we're lazy.
Expand Down Expand Up @@ -158,4 +171,4 @@ CSI_IMG_CEPH_CSI ?= $(IMAGE_LOCATION_CEPH_CSI)/$(DEFAULT_CSI_IMG_CEPH_CSI_NAME):
# CSI_IMG_CEPH_CSI_v4_x ?= cephcsi:v0.1

# we will maintain N (VERSION var in this file) through and including N-2 versions
CSI_OCP_VERSIONS ?= v4.15 v4.16 v4.17
CSI_OCP_VERSIONS ?= v4.17 v4.18 v4.19

0 comments on commit 707c782

Please sign in to comment.