Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
Signed-off-by: Anatolii Bazko <[email protected]>
  • Loading branch information
tolusha committed Jun 11, 2021
1 parent aaba38d commit 801cbea
Showing 1 changed file with 11 additions and 20 deletions.
31 changes: 11 additions & 20 deletions olm/release-olm-files.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,26 +39,17 @@ downloadLatestReleasedBundleCRCRD() {
PRE_RELEASE_CHEMANAGER_CRD="${STABLE_BUNDLE_PATH}/generated/${platform}/chemanagers.che.eclipse.org.CustomResourceDefinition.yaml"
PRE_RELEASE_DWROUTING_CRD="${STABLE_BUNDLE_PATH}/generated/${platform}/devworkspaceroutings.controller.devfile.io.CustomResourceDefinition.yaml"

compareResult=$(pysemver compare "${LAST_RELEASE_VERSION}" "7.27.2")
if [ "${compareResult}" == "1" ]; then
wget "https://raw.githubusercontent.com/eclipse-che/che-operator/${LAST_RELEASE_VERSION}/deploy/olm-catalog/stable/eclipse-che-preview-${platform}/manifests/che-operator.clusterserviceversion.yaml" \
-q -O "${PRE_RELEASE_CSV}"
wget "https://raw.githubusercontent.com/eclipse-che/che-operator/${LAST_RELEASE_VERSION}/deploy/olm-catalog/stable/eclipse-che-preview-${platform}/manifests/org_v1_che_crd.yaml" \
-q -O "${PRE_RELEASE_CRD}"
else
wget "https://raw.githubusercontent.com/eclipse-che/che-operator/${LAST_RELEASE_VERSION}/olm/eclipse-che-preview-${platform}/deploy/olm-catalog/eclipse-che-preview-${platform}/${LAST_RELEASE_VERSION}/eclipse-che-preview-${platform}.v${LAST_RELEASE_VERSION}.clusterserviceversion.yaml" \
-q -O "${PRE_RELEASE_CSV}"
wget "https://raw.githubusercontent.com/eclipse-che/che-operator/${LAST_RELEASE_VERSION}/olm/eclipse-che-preview-${platform}/deploy/olm-catalog/eclipse-che-preview-${platform}/${LAST_RELEASE_VERSION}/eclipse-che-preview-${platform}.crd.yaml" \
-q -O "${PRE_RELEASE_CRD}"
fi

compareResult=$(pysemver compare "${LAST_RELEASE_VERSION}" "7.30.0")
if [ "${compareResult}" == "1" ]; then
wget "https://raw.githubusercontent.com/eclipse-che/che-operator/${LAST_RELEASE_VERSION}/deploy/olm-catalog/stable/eclipse-che-preview-${platform}/manifests/chemanagers.che.eclipse.org.CustomResourceDefinition.yaml" \
-q -O "${PRE_RELEASE_CHEMANAGER_CRD}"
wget "https://raw.githubusercontent.com/eclipse-che/che-operator/${LAST_RELEASE_VERSION}/deploy/olm-catalog/stable/eclipse-che-preview-${platform}/manifests/devworkspaceroutings.controller.devfile.io.CustomResourceDefinition.yaml" \
-q -O "${PRE_RELEASE_DWROUTING_CRD}"
fi
wget "https://raw.githubusercontent.com/eclipse-che/che-operator/${LAST_RELEASE_VERSION}/deploy/olm-catalog/stable/eclipse-che-preview-${platform}/manifests/che-operator.clusterserviceversion.yaml" \
-q -O "${PRE_RELEASE_CSV}"
wget "https://raw.githubusercontent.com/eclipse-che/che-operator/${LAST_RELEASE_VERSION}/deploy/olm-catalog/stable/eclipse-che-preview-${platform}/manifests/org_v1_che_crd.yaml" \
-q -O "${PRE_RELEASE_CRD}"

set +x
wget "https://raw.githubusercontent.com/eclipse-che/che-operator/${LAST_RELEASE_VERSION}/deploy/olm-catalog/stable/eclipse-che-preview-${platform}/manifests/chemanagers.che.eclipse.org.CustomResourceDefinition.yaml" \
-q -O "${PRE_RELEASE_CHEMANAGER_CRD}"
wget "https://raw.githubusercontent.com/eclipse-che/che-operator/${LAST_RELEASE_VERSION}/deploy/olm-catalog/stable/eclipse-che-preview-${platform}/manifests/devworkspaceroutings.controller.devfile.io.CustomResourceDefinition.yaml" \
-q -O "${PRE_RELEASE_DWROUTING_CRD}"
set -x
}

if [[ "$1" =~ $REGEX ]]
Expand Down

0 comments on commit 801cbea

Please sign in to comment.