mirror of
https://github.com/bokysan/docker-postfix.git
synced 2024-09-20 06:46:10 +08:00
add k8s version min requirement
This commit is contained in:
parent
86ee369d26
commit
f65c22454f
|
@ -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 -}}
|
Loading…
Reference in a new issue