* fix(argo-cd): global.securityContext merging merge global.securityContext into local (applicationset, notifications) values Signed-off-by: Höhl, Lukas <lukas.hoehl@accso.de> * chore(argo-cd): bump version and add artifacthub changes Signed-off-by: Höhl, Lukas <lukas.hoehl@accso.de> * fix(argo-cd): wrong value for applicationSet podSecurityContext Signed-off-by: Höhl, Lukas <lukas.hoehl@accso.de> * fix(argo-cd): rerun helm-docs Signed-off-by: Höhl, Lukas <lukas.hoehl@accso.de> * chore(argo-cd): bump version Signed-off-by: Höhl, Lukas <lukas.hoehl@accso.de> Co-authored-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>
53 lines
2.4 KiB
YAML
53 lines
2.4 KiB
YAML
{{ if and .Values.notifications.enabled .Values.notifications.bots.slack.enabled }}
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: {{ template "argo-cd.notifications.fullname" . }}-bot
|
|
labels:
|
|
{{- include "argo-cd.labels" (dict "context" . "component" .Values.notifications.bots.slack.name "name" .Values.notifications.bots.slack.name) | nindent 4 }}
|
|
spec:
|
|
strategy:
|
|
{{- .Values.notifications.bots.slack.updateStrategy | toYaml | nindent 4 }}
|
|
selector:
|
|
matchLabels:
|
|
{{- include "argo-cd.selectorLabels" (dict "context" . "component" .Values.notifications.bots.slack.name "name" "metrics") | nindent 6 }}
|
|
template:
|
|
metadata:
|
|
labels:
|
|
{{- include "argo-cd.selectorLabels" (dict "context" . "component" .Values.notifications.bots.slack.name "name" "metrics") | nindent 8 }}
|
|
spec:
|
|
{{- with .Values.notifications.bots.slack.imagePullSecrets }}
|
|
imagePullSecrets:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
serviceAccountName: {{ template "argo-cd.notificationsBotsSlackServiceAccountName" . }}
|
|
securityContext: {{- toYaml (mergeOverwrite (deepCopy .Values.global.securityContext) .Values.notifications.securityContext) | nindent 8 }}
|
|
containers:
|
|
- name: {{ template "argo-cd.notifications.fullname" . }}-bot
|
|
image: {{ default .Values.global.image.repository .Values.notifications.bots.slack.image.repository }}:{{ default (include "argo-cd.defaultTag" .) .Values.notifications.bots.slack.image.tag }}
|
|
imagePullPolicy: {{ default .Values.global.image.imagePullPolicy .Values.notifications.bots.slack.image.pullPolicy }}
|
|
resources:
|
|
{{- toYaml .Values.notifications.bots.slack.resources | nindent 12 }}
|
|
command:
|
|
- argocd-notifications
|
|
- bot
|
|
workingDir: /app
|
|
ports:
|
|
- containerPort: 8080
|
|
name: http
|
|
{{- with .Values.notifications.bots.slack.containerSecurityContext }}
|
|
securityContext: {{- toYaml . | nindent 12 }}
|
|
{{- end }}
|
|
{{- with .Values.notifications.bots.slack.nodeSelector }}
|
|
nodeSelector:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
{{- with .Values.notifications.bots.slack.affinity }}
|
|
affinity:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
{{- with .Values.notifications.bots.slack.tolerations }}
|
|
tolerations:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
{{ end }}
|