add k8s version min requirement

This commit is contained in:
Jarek 2024-04-26 16:35:52 +02:00 committed by Boky
parent 86ee369d26
commit f65c22454f

View file

@ -21,7 +21,7 @@ spec:
protocol: TCP protocol: TCP
name: smtp name: smtp
{{ if eq .Values.service.type "NodePort" }}nodePort: {{ .Values.service.nodePort }}{{ end }} {{ 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: selector:
{{- $selectorLabels | nindent 4 }} {{- $selectorLabels | nindent 4 }}
{{- if .Values.headlessService.enabled }} {{- if .Values.headlessService.enabled }}
@ -47,7 +47,7 @@ spec:
targetPort: smtp targetPort: smtp
protocol: TCP protocol: TCP
name: smtp 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: selector:
{{- $selectorLabels | nindent 4 }} {{- $selectorLabels | nindent 4 }}
{{- end -}} {{- end -}}