Skip to content

Commit

Permalink
Remove rand suffix in test job name
Browse files Browse the repository at this point in the history
Also added possibility to add additional
annotations for test job.
  • Loading branch information
mustdiechik committed Sep 5, 2023
1 parent 1d4aceb commit 61b97ff
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
4 changes: 2 additions & 2 deletions charts/mattermost-team-edition/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
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 }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
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
Expand Down
5 changes: 5 additions & 0 deletions charts/mattermost-team-edition/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -247,3 +247,8 @@ readinessProbe:
failureThreshold: 3
timeoutSeconds: 5
periodSeconds: 10

## Additional annotations for test job

testJob:
annotations: {}

0 comments on commit 61b97ff

Please sign in to comment.