Skip to content

Commit

Permalink
feat: support disabling docker legacy service links creation in keda …
Browse files Browse the repository at this point in the history
…containers (#725)

* Disable docker legacy service links

Signed-off-by: Gabi Davar <[email protected]>

* switch default to true

Signed-off-by: Gabi Davar <[email protected]>

---------

Signed-off-by: Gabi Davar <[email protected]>
  • Loading branch information
mindw authored Jan 26, 2025
1 parent 213d205 commit 4092615
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions keda/templates/manager/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ spec:
{{- end }}
{{- end }}
spec:
enableServiceLinks: {{ .Values.enableServiceLinks }}
{{- if .Values.priorityClassName }}
priorityClassName: {{ .Values.priorityClassName | quote }}
{{- end }}
Expand Down
1 change: 1 addition & 0 deletions keda/templates/metrics-server/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ spec:
{{- end }}
{{- end }}
spec:
enableServiceLinks: {{ .Values.enableServiceLinks }}
{{- if .Values.priorityClassName }}
priorityClassName: {{ .Values.priorityClassName | quote }}
{{- end }}
Expand Down
1 change: 1 addition & 0 deletions keda/templates/webhooks/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ spec:
{{- end }}
{{- end }}
spec:
enableServiceLinks: {{ .Values.enableServiceLinks }}
{{- if .Values.priorityClassName }}
priorityClassName: {{ .Values.priorityClassName | quote }}
{{- end }}
Expand Down
4 changes: 4 additions & 0 deletions keda/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -863,3 +863,7 @@ asciiArt: true

# -- 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.
customManagedBy: ""

# -- Enable service links in pods. Although enabled, mirroring k8s default, it is highly recommended to disable,
# due to its legacy status [Legacy container links](https://docs.docker.com/engine/network/links/)
enableServiceLinks: true

0 comments on commit 4092615

Please sign in to comment.