From 61b97ff2e488fcf815017302519e6ad31f2ca711 Mon Sep 17 00:00:00 2001 From: Ruslan Khizhnyak Date: Mon, 4 Sep 2023 09:10:10 +0300 Subject: [PATCH] Remove rand suffix in test job name Also added possibility to add additional annotations for test job. --- charts/mattermost-team-edition/Chart.yaml | 4 ++-- .../templates/tests/mattermost-test.yaml | 5 ++++- charts/mattermost-team-edition/values.yaml | 5 +++++ 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/charts/mattermost-team-edition/Chart.yaml b/charts/mattermost-team-edition/Chart.yaml index b96177fb..5612cd6c 100644 --- a/charts/mattermost-team-edition/Chart.yaml +++ b/charts/mattermost-team-edition/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 description: Mattermost Team Edition server. type: application name: mattermost-team-edition -version: 6.6.34 -appVersion: 8.1.0 +version: 6.6.35 +appVersion: 8.1.1 keywords: - mattermost - communication diff --git a/charts/mattermost-team-edition/templates/tests/mattermost-test.yaml b/charts/mattermost-team-edition/templates/tests/mattermost-test.yaml index aa3c231c..bb8b85dd 100644 --- a/charts/mattermost-team-edition/templates/tests/mattermost-test.yaml +++ b/charts/mattermost-team-edition/templates/tests/mattermost-test.yaml @@ -1,7 +1,7 @@ apiVersion: v1 kind: Pod metadata: - name: "{{ include "mattermost-team-edition.fullname" . }}-test-{{ randAlphaNum 5 | lower }}" + name: "{{ include "mattermost-team-edition.fullname" . }}-test" labels: app.kubernetes.io/name: {{ include "mattermost-team-edition.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} @@ -9,6 +9,9 @@ metadata: helm.sh/chart: {{ include "mattermost-team-edition.chart" . }} annotations: "helm.sh/hook": test-success + {{- with .Values.testJob.annotations }} + {{- . | toYaml | nindent 4 }} + {{- end }} spec: containers: - name: {{ .Release.Name }}-test diff --git a/charts/mattermost-team-edition/values.yaml b/charts/mattermost-team-edition/values.yaml index b16bb4e5..b4e0365c 100644 --- a/charts/mattermost-team-edition/values.yaml +++ b/charts/mattermost-team-edition/values.yaml @@ -247,3 +247,8 @@ readinessProbe: failureThreshold: 3 timeoutSeconds: 5 periodSeconds: 10 + +## Additional annotations for test job + +testJob: + annotations: {}