diff --git a/Makefile b/Makefile index c78ebf451..412437901 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,7 @@ BIN_PATH=$(CURPATH)/bin YQ = $(BIN_PATH)/yq YQ_VERSION = v4.47.1 export PATH := $(BIN_PATH):$(PATH) +export MAX_OCP_VERSION := 5.0 all: build .PHONY: all diff --git a/config/aws-efs/manifests/stable/aws-efs-csi-driver-operator.clusterserviceversion.yaml b/config/aws-efs/manifests/stable/aws-efs-csi-driver-operator.clusterserviceversion.yaml index 2150d0c02..f0e6c20b2 100644 --- a/config/aws-efs/manifests/stable/aws-efs-csi-driver-operator.clusterserviceversion.yaml +++ b/config/aws-efs/manifests/stable/aws-efs-csi-driver-operator.clusterserviceversion.yaml @@ -13,7 +13,7 @@ metadata: repository: https://github.com/openshift/aws-efs-csi-driver-operator createdAt: "2021-07-14T00:00:00Z" description: Install and configure AWS EFS CSI driver. - olm.properties: '[{"type":"olm.maxOpenShiftVersion","value":"4.23"}]' + olm.properties: '[{"type":"olm.maxOpenShiftVersion","value":"5.0"}]' olm.skipRange: ">=4.9.0-0 <4.22.0" features.operators.openshift.io/disconnected: "true" features.operators.openshift.io/fips-compliant: "true" diff --git a/config/samba/manifests/stable/smb-csi-driver-operator.clusterserviceversion.yaml b/config/samba/manifests/stable/smb-csi-driver-operator.clusterserviceversion.yaml index 4fcdffe9b..dac8493d2 100644 --- a/config/samba/manifests/stable/smb-csi-driver-operator.clusterserviceversion.yaml +++ b/config/samba/manifests/stable/smb-csi-driver-operator.clusterserviceversion.yaml @@ -13,7 +13,7 @@ metadata: repository: https://github.com/openshift/csi-operator createdAt: "2021-07-14T00:00:00Z" description: Install and configure CIFS/SMB CSI driver. - olm.properties: '[{"type":"olm.maxOpenShiftVersion","value":"4.23"}]' + olm.properties: '[{"type":"olm.maxOpenShiftVersion","value":"5.0"}]' olm.skipRange: ">=4.15.0-0 <4.22.0" features.operators.openshift.io/disconnected: "true" features.operators.openshift.io/fips-compliant: "false" diff --git a/hack/update-metadata.sh b/hack/update-metadata.sh index 75e14fbbf..5e55a103b 100755 --- a/hack/update-metadata.sh +++ b/hack/update-metadata.sh @@ -13,6 +13,9 @@ set -o pipefail # using the current package version, or you can for example run # `./hack/update-metadata.sh 4.20` to set the package version to 4.20. # Both PACKAGE_MANIFEST and CSV_MANIFEST will be updated by this script. +# +# MAX_OCP_VERSION defaults to the next minor version after OCP_VERSION, but +# can be overwritten by setting the MAX_OCP_VERSION environment variable. PLATFORMS_NAMES=("aws-efs" "samba") PLATFORMS_ACRONYMS=("aws-efs" "smb") @@ -53,11 +56,12 @@ do if [ "${OCP_VERSION}" != "${PACKAGE_VERSION}" ]; then PACKAGE_VERSION="${MAJOR_VERSION}.${MINOR_VERSION}.${PATCH_VERSION}" fi + MAX_OCP_VERSION=${MAX_OCP_VERSION:-"${MAJOR_VERSION}.$((MINOR_VERSION + 1))"} export NEW_CURRENT_CSV="${PACKAGE_NAME}.v${PACKAGE_VERSION}" export NEW_METADATA_NAME="${PACKAGE_NAME}.v${PACKAGE_VERSION}" export NEW_SKIP_RANGE=$(echo ${SKIP_RANGE} | sed "s/ <.*$/ <${PACKAGE_VERSION}/") - export NEW_OLM_PROPERTIES=$(echo "${OLM_PROPERTIES}" | jq -c 'map(if .type=="olm.maxOpenShiftVersion" then .value="'${MAJOR_VERSION}.$((MINOR_VERSION + 1))'" else . end)') + export NEW_OLM_PROPERTIES=$(echo "${OLM_PROPERTIES}" | jq -c 'map(if .type=="olm.maxOpenShiftVersion" then .value="'${MAX_OCP_VERSION}'" else . end)') export NEW_SPEC_VERSION="${PACKAGE_VERSION}" export NEW_ALM_STATUS_DESC="${PACKAGE_NAME}.v${PACKAGE_VERSION}"