argocd-helm/charts/argocd-notifications/templates/bots/slack/service.yaml
Maciej Moleda c716c1795e
[argocd-notifications] add monitoring and slack bot service annotations (#411)
* feat: add slack bot service annotations to argocd-notifications

* feat: add monitoring to argocd-notifications
2020-07-22 20:58:59 -04:00

19 lines
513 B
YAML

{{ if .Values.bots.slack.enabled }}
apiVersion: v1
kind: Service
metadata:
name: {{ include "argocd-notifications.name" . }}-bot
{{- if .Values.bots.slack.service.annotations }}
annotations:
{{- toYaml .Values.bots.slack.service.annotations | nindent 4 }}
{{- end }}
spec:
ports:
- name: server
port: 80
protocol: TCP
targetPort: 8080
selector:
{{- include "argocd-notifications.bots.slack.selectorLabels" . | nindent 4 }}
type: {{ .Values.bots.slack.service.type }}
{{ end }}