Skip to content

Commit

Permalink
add k8s version min requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
cmk-jarek authored and bokysan committed Apr 30, 2024
1 parent 86ee369 commit f65c224
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helm/mail/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ spec:
protocol: TCP
name: smtp
{{ if eq .Values.service.type "NodePort" }}nodePort: {{ .Values.service.nodePort }}{{ end }}
{{ if .Values.service.appprotocol }}appProtocol: {{ .Values.service.appprotocol }}{{ end }}
{{ if and (semverCompare ">=1.20-0" .Capabilities.KubeVersion.GitVersion) .Values.service.appprotocol }}appProtocol: {{ .Values.service.appprotocol }}{{ end }}
selector:
{{- $selectorLabels | nindent 4 }}
{{- if .Values.headlessService.enabled }}
Expand All @@ -47,7 +47,7 @@ spec:
targetPort: smtp
protocol: TCP
name: smtp
{{ if .Values.service.appprotocol }}appProtocol: {{ .Values.service.appprotocol }}{{ end }}
{{ if and (semverCompare ">=1.20-0" .Capabilities.KubeVersion.GitVersion) .Values.service.appprotocol }}appProtocol: {{ .Values.service.appprotocol }}{{ end }}
selector:
{{- $selectorLabels | nindent 4 }}
{{- end -}}

0 comments on commit f65c224

Please sign in to comment.