From 4d00b84b5511d655aa47edaef3dcc4108c6f971a Mon Sep 17 00:00:00 2001 From: Frederick Baier Date: Tue, 25 Apr 2023 12:30:10 +0200 Subject: [PATCH] add chart version to values.yaml and pass it to the simplecloud deployment --- charts/simplecloud/Chart.yaml | 2 +- charts/simplecloud/templates/simplecloud-depl.yml | 2 ++ charts/simplecloud/values.yaml | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/charts/simplecloud/Chart.yaml b/charts/simplecloud/Chart.yaml index 1c692dd..e55e909 100644 --- a/charts/simplecloud/Chart.yaml +++ b/charts/simplecloud/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.1.5 +version: 0.1.6 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/simplecloud/templates/simplecloud-depl.yml b/charts/simplecloud/templates/simplecloud-depl.yml index 20449dc..40aa074 100644 --- a/charts/simplecloud/templates/simplecloud-depl.yml +++ b/charts/simplecloud/templates/simplecloud-depl.yml @@ -39,6 +39,8 @@ spec: value: {{ .Values.init.user.password }} - name: INIT_DB_CONNECTION value: {{ .Values.init.mongo }} + - name: HELM_VERSION + value: { { .Values.chartVersion } } --- apiVersion: v1 diff --git a/charts/simplecloud/values.yaml b/charts/simplecloud/values.yaml index 665ab32..2f45410 100644 --- a/charts/simplecloud/values.yaml +++ b/charts/simplecloud/values.yaml @@ -1,4 +1,6 @@ appName: "simplecloud" +#Duplicate of version in Chart.yaml +chartVersion: 0.1.6 replicas: 1 image: "registry.registry.svc.cluster.local:5000/simplecloud3:latest"