chore: Adapt stable HelmCharts to API CheCluster v2 (#1417)

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
pull/1420/head
Anatolii Bazko 2022-06-27 14:36:17 +03:00 committed by GitHub
parent 8d36002f46
commit 10ee258bfb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -212,6 +212,12 @@ update-helmcharts: ## Update Helm Charts
done
yq -rYi --arg examples "$${CRDS_SAMPLES}" ".annotations.\"artifacthub.io/crdsExamples\" = \$$examples" $${chartYaml}
# Set CheCluster API version to v2 (TODO: remove in a next release)
CRDS=$$(yq -r '.annotations."artifacthub.io/crds"' $${chartYaml} | yq -ry -w 9999 '.[0].version="v2"')
yq -rYi --arg crds "$${CRDS}" ".annotations.\"artifacthub.io/crds\" = \$$crds" $${chartYaml}
sed -i 's|org_v1_checluster|org_v2_checluster|g' $${HELM_DIR}/README.md
rm -rf $${HELMCHARTS_TEMPLATES}/org_v2_checluster.yaml
else
yq -riY '.spec.networking = null' $${HELMCHARTS_TEMPLATES}/org_v2_checluster.yaml

View File

@ -52,4 +52,4 @@ annotations:
version: v1
name: checlusters.org.eclipse.che
displayName: CheCluster
description: The `CheCluster` custom resource allows defining and managing a Che server installation"
description: The `CheCluster` custom resource allows defining and managing a Che server installation