Skip to content

Add automountServiceAccountToken support to Deployment #477

@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 automountServiceAccountToken field. Some workloads require disabling automatic mounting of the service account token to improve security and follow least-privilege principles.

Describe the solution you'd like
Add a Helm chart option that allows explicitly setting spec.template.spec.automountServiceAccountToken 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 automountServiceAccountToken field must be configured directly in the pod template, and no existing chart option controls this behavior.

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