Skip to content

Commit

Permalink
Merge pull request #136 from AndrienkoAleksandr/fixFailingCRW_2.13-rh…
Browse files Browse the repository at this point in the history
…el8_Installation

fix: Include all CRs to CSV to fix CRW installation.
  • Loading branch information
mmorhun authored Nov 4, 2021
2 parents 078b674 + 4391008 commit 4639cce
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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}"

Expand Down

0 comments on commit 4639cce

Please sign in to comment.