Skip to content

Commit

Permalink
csv: fix csv-gen script to correctly replace env vars
Browse files Browse the repository at this point in the history
updated csv-gen script to correctly replace ROOK_IMAGE
env var. Also, updated the rook image to the latest 1.15 tag.

Signed-off-by: Nikhil-Ladha <[email protected]>
  • Loading branch information
Nikhil-Ladha committed Sep 4, 2024
1 parent 8d5e9a9 commit 9a10609
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ DEFAULT_CSV_VERSION="4.17.0"
CSV_VERSION="${CSV_VERSION:-${DEFAULT_CSV_VERSION}}"
SKIP_RANGE="${SKIP_RANGE:-""}"
REPLACES_CSV_VERSION="${REPLACES_CSV_VERSION:-""}"
LATEST_ROOK_IMAGE="docker.io/rook/ceph:v1.13.0.399.g9c0d795e2"
LATEST_ROOK_IMAGE="docker.io/rook/ceph:v1.15.0"
ROOK_IMAGE=${ROOK_IMAGE:-${LATEST_ROOK_IMAGE}}
DEFAULT_BUNDLE_IMAGE=quay.io/ocs-dev/rook-ceph-operator-bundle:"${VERSION}"
BUNDLE_IMAGE="${BUNDLE_IMAGE:-${DEFAULT_BUNDLE_IMAGE}}"
Expand Down
4 changes: 2 additions & 2 deletions build/csv/csv-gen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ function generate_csv() {
return
fi

sed -i "s|containerImage: rook/ceph:.*|containerImage: $ROOK_IMAGE|" "$CSV_FILE_NAME"
sed -i "s|image: rook/ceph:.*|image: $ROOK_IMAGE|" "$CSV_FILE_NAME"
sed -i "s|containerImage: .*/rook/ceph:.*|containerImage: $ROOK_IMAGE|" "$CSV_FILE_NAME"
sed -i "s|image: .*/rook/ceph:.*|image: $ROOK_IMAGE|" "$CSV_FILE_NAME"
sed -i "s/name: rook-ceph.v.*/name: rook-ceph-operator.v$CSV_VERSION/g" "$CSV_FILE_NAME"
sed -i "s/version: 0.0.0/version: $CSV_VERSION/g" "$CSV_FILE_NAME"

Expand Down
4 changes: 2 additions & 2 deletions deploy/olm/assemble/metadata-common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ spec:
- type: AllNamespaces
supported: false
relatedImages:
- image: rook/ceph:master
- image: docker.io/rook/ceph:master
name: rook-container
- image: quay.io/csiaddons/k8s-sidecar:v0.8.0
name: csiaddons-sidecar
Expand All @@ -254,7 +254,7 @@ metadata:
capabilities: Seamless Upgrades
tectonic-visibility: ocs
repository: https://github.com/red-hat-storage/rook
containerImage: rook/ceph:master
containerImage: docker.io/rook/ceph:master
operators.operatorframework.io/operator-type: non-standalone
alm-examples: |-
[
Expand Down

0 comments on commit 9a10609

Please sign in to comment.