Skip to content

Commit 4092615

Browse files
authored
feat: support disabling docker legacy service links creation in keda containers (#725)
* Disable docker legacy service links Signed-off-by: Gabi Davar <grizzly.nyo@gmail.com> * switch default to true Signed-off-by: Gabi Davar <grizzly.nyo@gmail.com> --------- Signed-off-by: Gabi Davar <grizzly.nyo@gmail.com>
1 parent 213d205 commit 4092615

File tree

4 files changed

+7
-0
lines changed

4 files changed

+7
-0
lines changed

keda/templates/manager/deployment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ spec:
4545
{{- end }}
4646
{{- end }}
4747
spec:
48+
enableServiceLinks: {{ .Values.enableServiceLinks }}
4849
{{- if .Values.priorityClassName }}
4950
priorityClassName: {{ .Values.priorityClassName | quote }}
5051
{{- end }}

keda/templates/metrics-server/deployment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ spec:
4444
{{- end }}
4545
{{- end }}
4646
spec:
47+
enableServiceLinks: {{ .Values.enableServiceLinks }}
4748
{{- if .Values.priorityClassName }}
4849
priorityClassName: {{ .Values.priorityClassName | quote }}
4950
{{- end }}

keda/templates/webhooks/deployment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ spec:
4343
{{- end }}
4444
{{- end }}
4545
spec:
46+
enableServiceLinks: {{ .Values.enableServiceLinks }}
4647
{{- if .Values.priorityClassName }}
4748
priorityClassName: {{ .Values.priorityClassName | quote }}
4849
{{- end }}

keda/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -863,3 +863,7 @@ asciiArt: true
863863

864864
# -- When specified, each rendered resource will have `app.kubernetes.io/managed-by: ${this}` label on it. Useful, when using only helm template with some other solution.
865865
customManagedBy: ""
866+
867+
# -- Enable service links in pods. Although enabled, mirroring k8s default, it is highly recommended to disable,
868+
# due to its legacy status [Legacy container links](https://docs.docker.com/engine/network/links/)
869+
enableServiceLinks: true

0 commit comments

Comments
 (0)