Skip to content

Add enableServiceLinks support to Deployment #475

@alex1989hu

Description

@alex1989hu

Is your feature request related to a problem? Please describe.
The current application/templates/deployment.yaml template does not provide a way to configure the Kubernetes enableServiceLinks field. Some workloads require disabling service links to avoid environment variable pollution or unexpected behavior caused by automatically injected service-related environment variables.

Describe the solution you'd like
Add a Helm chart option that allows explicitly setting spec.template.spec.enableServiceLinks in the generated Deployment. This should support both true and false, and preserve default behavior when omitted.

Describe alternatives you've considered
There are no viable alternatives. The enableServiceLinks field must be declared directly in the pod template, and there is no existing chart option that allows controlling this field.

Additional context
N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions