You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: helm/mail/templates/service.yaml
+2-2
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ spec:
21
21
protocol: TCP
22
22
name: smtp
23
23
{{ if eq .Values.service.type "NodePort" }}nodePort: {{ .Values.service.nodePort }}{{ end }}
24
-
{{ if .Values.service.appprotocol }}appProtocol: {{ .Values.service.appprotocol }}{{ end }}
24
+
{{ if and (semverCompare ">=1.20-0" .Capabilities.KubeVersion.GitVersion) .Values.service.appprotocol }}appProtocol: {{ .Values.service.appprotocol }}{{ end }}
25
25
selector:
26
26
{{- $selectorLabels | nindent 4 }}
27
27
{{- if .Values.headlessService.enabled }}
@@ -47,7 +47,7 @@ spec:
47
47
targetPort: smtp
48
48
protocol: TCP
49
49
name: smtp
50
-
{{ if .Values.service.appprotocol }}appProtocol: {{ .Values.service.appprotocol }}{{ end }}
50
+
{{ if and (semverCompare ">=1.20-0" .Capabilities.KubeVersion.GitVersion) .Values.service.appprotocol }}appProtocol: {{ .Values.service.appprotocol }}{{ end }}
0 commit comments