mirror of
https://github.com/bokysan/docker-postfix.git
synced 2025-09-06 06:25:40 +08:00
add k8s version min requirement
This commit is contained in:
parent
f0935199ae
commit
ad9d42b211
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue