Skip to content
Snippets Groups Projects
Commit f4d771db authored by Gia. Bui Dai's avatar Gia. Bui Dai Committed by Shinya Maeda
Browse files

feat: better version check for topologySpreadConstraints

parent 9cc1b21c
Branches
Tags
No related merge requests found
...@@ -57,7 +57,7 @@ spec: ...@@ -57,7 +57,7 @@ spec:
initContainers: initContainers:
{{ toYaml .Values.initContainers | indent 8 }} {{ toYaml .Values.initContainers | indent 8 }}
{{- end }} {{- end }}
{{- if and (or (gt .Capabilities.KubeVersion.Major "1") (ge .Capabilities.KubeVersion.Minor "19")) (.Values.topologySpreadConstraints) }} {{- if and (semverCompare ">= 1.19.x" .Capabilities.KubeVersion.Version) (.Values.topologySpreadConstraints) }}
topologySpreadConstraints: topologySpreadConstraints:
{{ toYaml .Values.topologySpreadConstraints | indent 8 }} {{ toYaml .Values.topologySpreadConstraints | indent 8 }}
{{- end }} {{- end }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment