chore: Adapt stable HelmCharts to API CheCluster v2 (#1417)
Signed-off-by: Anatolii Bazko <abazko@redhat.com>pull/1420/head
parent
8d36002f46
commit
10ee258bfb
6
Makefile
6
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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue