File tree Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ apiVersion: v2
2
2
appVersion : v0.0.0
3
3
description : Codefresh library chart
4
4
name : cf-common
5
- version : 0.25 .0
5
+ version : 0.26 .0
6
6
type : library
7
7
keywords :
8
8
- codefresh
Original file line number Diff line number Diff line change 91
91
{ {- if $serviceItem .extraSelectorLabels } }
92
92
{ {- include " cf-common-0.25.0.tplrender" (dict " Values" $serviceItem .extraSelectorLabels " context" $) | nindent 4 } }
93
93
{ {- end } }
94
+ { {- if semverCompare " >=1.31-0" (include " cf-common-0.25.0.kubeVersion" . ) } }
95
+ { {- if $serviceItem .trafficDistribution } }
96
+ trafficDistribution: { { $serviceItem .trafficDistribution | default " PreferClose" } }
97
+ { {- end } }
98
+ { {- end -} }
94
99
{ {- end } }
95
100
{ {- end } }
96
101
Original file line number Diff line number Diff line change @@ -469,6 +469,9 @@ service:
469
469
targetPort :
470
470
# If `targetPort` is specified, this port number is used in the container definition instead of
471
471
# the `port` value. Therefore named ports are not supported for this field
472
+ # -- Enable trafficDistribution
473
+ # Ref: https://kubernetes.io/docs/concepts/services-networking/service/#traffic-distribution
474
+ # trafficDistribution: "PreferClose"
472
475
473
476
# -- Configure the Ingresses for the chart.
474
477
# Additional Ingresses can be added by adding a dictionary key similar to the 'main' ingress.
You can’t perform that action at this time.
0 commit comments