feat: use chart appVersion as default image-tag

Signed-off-by: Christian Kotzbauer <christian.kotzbauer@gmail.com>
This commit is contained in:
Christian Kotzbauer
2021-04-02 09:41:37 +02:00
parent 4d45fa8bdb
commit 21fdba4ef0
4 changed files with 3 additions and 4 deletions
-1
View File
@@ -40,7 +40,6 @@ manifest:
helm-chart:
sed -i "s#repository:.*/kured#repository: $(DH_ORG)/kured#g" charts/kured/values.yaml
sed -i "s#tag:.*#tag: $(VERSION)#g" charts/kured/values.yaml
sed -i "s#appVersion:.*#appVersion: \"$(VERSION)\"#g" charts/kured/Chart.yaml
sed -i "s#\`[0-9]*\.[0-9]*\.[0-9]*\`#\`$(VERSION)\`#g" charts/kured/README.md
echo "Please bump version in charts/kured/Chart.yaml"
+1 -1
View File
@@ -2,7 +2,7 @@ apiVersion: v1
appVersion: "1.6.1"
description: A Helm chart for kured
name: kured
version: 2.4.0
version: 2.4.1
home: https://github.com/weaveworks/kured
maintainers:
- name: ckotzbauer
+1 -1
View File
@@ -41,7 +41,7 @@ spec:
{{- end }}
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
securityContext:
privileged: true # Give permission to nsenter /proc/1/ns/mnt
+1 -1
View File
@@ -1,6 +1,6 @@
image:
repository: weaveworks/kured
tag: 1.6.1
tag: "" # will default to the appVersion in Chart.yaml
pullPolicy: IfNotPresent
pullSecrets: []