2020-06-23 23:40:18 +03:00
|
|
|
{{ if .Values.bots.slack.enabled }}
|
|
|
|
|
apiVersion: v1
|
|
|
|
|
kind: Service
|
|
|
|
|
metadata:
|
|
|
|
|
name: {{ include "argocd-notifications.name" . }}-bot
|
2020-07-23 01:58:59 +01:00
|
|
|
{{- if .Values.bots.slack.service.annotations }}
|
|
|
|
|
annotations:
|
|
|
|
|
{{- toYaml .Values.bots.slack.service.annotations | nindent 4 }}
|
|
|
|
|
{{- end }}
|
2020-06-23 23:40:18 +03:00
|
|
|
spec:
|
|
|
|
|
ports:
|
2020-08-28 21:01:39 -05:00
|
|
|
- name: http
|
|
|
|
|
port: {{ .Values.bots.slack.service.port }}
|
2020-06-23 23:40:18 +03:00
|
|
|
protocol: TCP
|
2020-08-28 21:01:39 -05:00
|
|
|
targetPort: http
|
2020-06-23 23:40:18 +03:00
|
|
|
selector:
|
|
|
|
|
{{- include "argocd-notifications.bots.slack.selectorLabels" . | nindent 4 }}
|
|
|
|
|
type: {{ .Values.bots.slack.service.type }}
|
|
|
|
|
{{ end }}
|