From 10ee258bfb5a92a9fd02861f45cb76a012ecb5ea Mon Sep 17 00:00:00 2001 From: Anatolii Bazko Date: Mon, 27 Jun 2022 14:36:17 +0300 Subject: [PATCH] chore: Adapt stable HelmCharts to API CheCluster v2 (#1417) Signed-off-by: Anatolii Bazko --- Makefile | 6 ++++++ helmcharts/stable/Chart.yaml | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 451be7b64..dfb43fa69 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/helmcharts/stable/Chart.yaml b/helmcharts/stable/Chart.yaml index 9435c4e32..ea541f5c6 100644 --- a/helmcharts/stable/Chart.yaml +++ b/helmcharts/stable/Chart.yaml @@ -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