argocd-helm/charts/argocd-notifications/templates/bots/slack/service.yaml
Richard Simpson 0a03ca0bab
feat: add support for configuring bot port (#432)
* feat: add support for configuring bot port

Adds support for configuring the bot listening port for people who want it to listen on 443 (for example)

* bump version

* remove unnecessary protocol

Co-authored-by: Andy Feller <andrew.feller@gmail.com>
2020-08-28 22:01:39 -04:00

19 lines
546 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: http
port: {{ .Values.bots.slack.service.port }}
protocol: TCP
targetPort: http
selector:
{{- include "argocd-notifications.bots.slack.selectorLabels" . | nindent 4 }}
type: {{ .Values.bots.slack.service.type }}
{{ end }}