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 b5f51c3 commit 8f5c0b0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/mattermost-team-edition/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
description: Mattermost Team Edition server.
type: application
name: mattermost-team-edition
version: 6.6.35
version: 6.6.36
appVersion: 8.1.1
keywords:
- mattermost
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 8f5c0b0

Please sign in to comment.