Skip to content

Commit c58d0d3

Browse files
committed
Config cs version in helm chart.yaml
Signed-off-by: YuChen <[email protected]>
1 parent aa4abe7 commit c58d0d3

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ VERSION ?= $(shell git describe --exact-match 2> /dev/null || \
3838
RELEASE_VERSION ?= $(shell cat ./version/version.go | grep "Version =" | awk '{ print $$3}' | tr -d '"')
3939
PREVIOUS_VERSION := 3.23.0
4040
LATEST_VERSION ?= latest
41+
DESCRIPTION ?= "A Helm chart for the IBM Common Service Operator"
4142

4243
LOCAL_OS := $(shell uname)
4344
ifeq ($(LOCAL_OS),Linux)
@@ -255,7 +256,7 @@ deploy-dryrun: manifests kustomize ## Deploy controller to the K8s cluster speci
255256

256257
.PHONY: helm
257258
helm: deploy-dryrun kustohelmize
258-
$(KUSTOHELMIZE) create --from=config/ibm-common-service-operator.yaml generate-helm/ibm-common-service-operator
259+
$(KUSTOHELMIZE) create --from=config/ibm-common-service-operator.yaml generate-helm/ibm-common-service-operator --version=$(RELEASE_VERSION) --app-version=$(RELEASE_VERSION) --description=$(DESCRIPTION)
259260
helm lint generate-helm/ibm-common-service-operator
260261
bash scripts/restructure_helm.sh
261262
helm lint helm

helm-cluster-scoped/Chart.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v2
22
name: ibm-common-service-operator
3-
description: A Helm chart for Kubernetes
3+
description: A Helm chart for the IBM Common Service Operator
44

55
# A chart can be either an 'application' or a 'library' chart.
66
#
@@ -15,10 +15,10 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.1.0
18+
version: 4.11.0
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to
2222
# follow Semantic Versioning. They should reflect the version the application is using.
2323
# It is recommended to use it with quotes.
24-
appVersion: "1.16.0"
24+
appVersion: "4.11.0"

helm/Chart.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v2
22
name: ibm-common-service-operator
3-
description: A Helm chart for Kubernetes
3+
description: A Helm chart for the IBM Common Service Operator
44

55
# A chart can be either an 'application' or a 'library' chart.
66
#
@@ -15,10 +15,10 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.1.0
18+
version: 4.11.0
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to
2222
# follow Semantic Versioning. They should reflect the version the application is using.
2323
# It is recommended to use it with quotes.
24-
appVersion: "1.16.0"
24+
appVersion: "4.11.0"

scripts/restructure_helm.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ cp $HELM_SRC_DIR/crds/* $CLUSTER_SCOPED_DIR/templates/crds.yaml
6868
# Todo: rest of resources
6969

7070
# Copy Helm values, Chart.yaml and helper.tpl
71-
#sed -i -e "s/^version:.*/version: $CHART_VERSION/" -e "s/^appVersion:.*/appVersion: $CHART_VERSION/" $HELM_DIR/Chart.yaml
7271
for dir in $HELM_DIR $CLUSTER_SCOPED_DIR; do cp $HELM_SRC_DIR/{values.yaml,Chart.yaml} "$dir/"; done
7372
for dir in $HELM_DIR $CLUSTER_SCOPED_DIR; do cp $HELM_SRC_DIR/templates/_helpers.tpl "$dir/templates/"; done
7473

0 commit comments

Comments
 (0)