mirror of
https://github.com/bokysan/docker-postfix.git
synced 2025-09-03 21:14:26 +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
|
||||
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 }}
|
||||
|
@ -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 -}}
|
Loading…
Add table
Reference in a new issue