8f70a4b9a0
Fix indention of exterrnal IPs for SSH service Co-authored-by: Steffen Vogel <post@steffenvogel.de> Reviewed-on: https://gitea.com/gitea/helm-chart/pulls/52 Reviewed-by: luhahn <luhahn@noreply.gitea.io> Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com> Co-Authored-By: Steffen Vogel <stv0g@noreply.gitea.io> Co-Committed-By: Steffen Vogel <stv0g@noreply.gitea.io>
34 lines
1.1 KiB
YAML
34 lines
1.1 KiB
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ include "gitea.fullname" . }}-ssh
|
|
labels:
|
|
{{- include "gitea.labels" . | nindent 4 }}
|
|
annotations:
|
|
{{- toYaml .Values.service.ssh.annotations | nindent 4 }}
|
|
spec:
|
|
type: {{ .Values.service.ssh.type }}
|
|
{{- if and .Values.service.ssh.loadBalancerIP (eq .Values.service.ssh.type "LoadBalancer") }}
|
|
loadBalancerIP: {{ .Values.service.ssh.loadBalancerIP }}
|
|
{{- end }}
|
|
{{- if eq .Values.service.ssh.type "ClusterIP" }}
|
|
clusterIP: None
|
|
{{- end }}
|
|
{{- if .Values.service.ssh.externalIPs }}
|
|
externalIPs:
|
|
{{- toYaml .Values.service.ssh.externalIPs | nindent 4 }}
|
|
{{- end }}
|
|
{{- if .Values.service.ssh.externalTrafficPolicy }}
|
|
externalTrafficPolicy: {{ .Values.service.ssh.externalTrafficPolicy }}
|
|
{{- end }}
|
|
ports:
|
|
- name: ssh
|
|
port: {{ .Values.service.ssh.port }}
|
|
targetPort: {{ .Values.gitea.config.server.SSH_LISTEN_PORT }}
|
|
protocol: TCP
|
|
{{- if .Values.service.ssh.nodePort }}
|
|
nodePort: {{ .Values.service.ssh.nodePort }}
|
|
{{- end }}
|
|
selector:
|
|
{{- include "gitea.selectorLabels" . | nindent 4 }}
|