From 43910084daf9302933e457d962bca2a573d721ea Mon Sep 17 00:00:00 2001 From: Oleksandr Andriienko Date: Thu, 4 Nov 2021 11:20:29 +0200 Subject: [PATCH] fix: Include all CRs to CSV to fix CRW installation. Signed-off-by: Oleksandr Andriienko --- .../build/scripts/sync-che-olm-to-crw-olm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codeready-workspaces-operator-metadata/build/scripts/sync-che-olm-to-crw-olm.sh b/codeready-workspaces-operator-metadata/build/scripts/sync-che-olm-to-crw-olm.sh index 4aa67220d4..cfcb5dca6c 100755 --- a/codeready-workspaces-operator-metadata/build/scripts/sync-che-olm-to-crw-olm.sh +++ b/codeready-workspaces-operator-metadata/build/scripts/sync-che-olm-to-crw-olm.sh @@ -256,7 +256,7 @@ for CSVFILE in ${TARGETDIR}/manifests/codeready-workspaces.csv.yaml; do fi # Disable by default devWorkspace engine in `latest` channel - CSV_CR_SAMPLES=$(yq -r ".metadata.annotations.\"alm-examples\"" "${CSVFILE}" | yq -r ".[0] | del(.spec.devWorkspace) | [.]" | sed -r 's/"/\\"/g') + CSV_CR_SAMPLES=$(yq -r ".metadata.annotations.\"alm-examples\" | fromjson | del(.[] | select(.kind == \"CheCluster\") | .spec.devWorkspace)" "${CSVFILE}" | sed -r 's/"/\\"/g') yq -riY ".metadata.annotations[\"alm-examples\"] = \"${CSV_CR_SAMPLES}\"" ${CSVFILE} yq -Yi '.spec.customresourcedefinitions.owned[] |= (select(.name == "checlusters.org.eclipse.che").specDescriptors += [{"path":"devWorkspace", "x-descriptors": ["urn:alm:descriptor:com.tectonic.ui:hidden"]}])' "${CSVFILE}"