We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca95c7e commit c904649Copy full SHA for c904649
charts/cf-common/templates/services/_services.tpl
@@ -91,8 +91,7 @@ spec:
91
{{- if $serviceItem.extraSelectorLabels }}
92
{{- include "cf-common-0.26.0.tplrender" (dict "Values" $serviceItem.extraSelectorLabels "context" $) | nindent 4 }}
93
{{- end }}
94
- {{- if semverCompare ">=1.31-0" (include "cf-common-0.26.0.kubeVersion" . ) }}
95
- {{- if $serviceItem.trafficDistribution }}
+ {{- if and $serviceItem.trafficDistribution (semverCompare ">=1.31-0" (include "cf-common-0.26.0.kubeVersion" . )) }}
96
trafficDistribution: {{ $serviceItem.trafficDistribution | default "PreferClose" }}
97
98
{{- end -}}
0 commit comments