2020-06-23 23:40:18 +03:00
|
|
|
{{ if .Values.bots.slack.enabled }}
|
|
|
|
|
apiVersion: apps/v1
|
|
|
|
|
kind: Deployment
|
|
|
|
|
metadata:
|
|
|
|
|
name: {{ include "argocd-notifications.name" . }}-bot
|
|
|
|
|
labels:
|
|
|
|
|
{{- include "argocd-notifications.bots.slack.labels" . | nindent 4 }}
|
|
|
|
|
spec:
|
|
|
|
|
strategy:
|
|
|
|
|
{{- .Values.bots.slack.updateStrategy | toYaml | nindent 4 }}
|
|
|
|
|
selector:
|
|
|
|
|
matchLabels:
|
|
|
|
|
{{- include "argocd-notifications.bots.slack.selectorLabels" . | nindent 6 }}
|
|
|
|
|
template:
|
|
|
|
|
metadata:
|
|
|
|
|
labels:
|
|
|
|
|
{{- include "argocd-notifications.bots.slack.selectorLabels" . | nindent 8 }}
|
|
|
|
|
spec:
|
|
|
|
|
{{- with .Values.bots.slack.imagePullSecrets }}
|
|
|
|
|
imagePullSecrets:
|
|
|
|
|
{{- toYaml . | nindent 8 }}
|
|
|
|
|
{{- end }}
|
2020-06-30 20:31:16 -04:00
|
|
|
serviceAccountName: {{ include "argocd-notifications.bots.slack.serviceAccountName" . }}
|
2022-02-01 22:47:44 +01:00
|
|
|
{{- with .Values.bots.slack.securityContext }}
|
|
|
|
|
securityContext: {{- toYaml . | nindent 8 }}
|
|
|
|
|
{{- end }}
|
2020-06-23 23:40:18 +03:00
|
|
|
containers:
|
|
|
|
|
- name: {{ include "argocd-notifications.name" . }}-bot
|
2021-11-12 10:25:07 +01:00
|
|
|
image: "{{ .Values.bots.slack.image.repository }}:{{ default .Chart.AppVersion .Values.bots.slack.image.tag }}"
|
2020-06-23 23:40:18 +03:00
|
|
|
imagePullPolicy: {{ .Values.bots.slack.image.pullPolicy }}
|
|
|
|
|
resources:
|
|
|
|
|
{{- toYaml .Values.bots.slack.resources | nindent 12 }}
|
|
|
|
|
command:
|
2021-02-03 20:48:19 +00:00
|
|
|
- /app/argocd-notifications-backend
|
2020-06-23 23:40:18 +03:00
|
|
|
- bot
|
2021-02-03 20:48:19 +00:00
|
|
|
workingDir: /app
|
2020-08-28 21:01:39 -05:00
|
|
|
ports:
|
|
|
|
|
- containerPort: 8080
|
|
|
|
|
name: http
|
2022-02-01 22:47:44 +01:00
|
|
|
{{- with .Values.bots.slack.containerSecurityContext }}
|
|
|
|
|
securityContext: {{- toYaml . | nindent 12 }}
|
|
|
|
|
{{- end }}
|
2020-06-23 23:40:18 +03:00
|
|
|
{{- with .Values.bots.slack.nodeSelector }}
|
|
|
|
|
nodeSelector:
|
|
|
|
|
{{- toYaml . | nindent 8 }}
|
|
|
|
|
{{- end }}
|
|
|
|
|
{{- with .Values.bots.slack.affinity }}
|
|
|
|
|
affinity:
|
|
|
|
|
{{- toYaml . | nindent 8 }}
|
|
|
|
|
{{- end }}
|
|
|
|
|
{{- with .Values.bots.slack.tolerations }}
|
|
|
|
|
tolerations:
|
|
|
|
|
{{- toYaml . | nindent 8 }}
|
|
|
|
|
{{- end }}
|
|
|
|
|
{{ end }}
|