Skip to content

TokenNameForServiceAccount should select the first secret with the type kubernetes.io/service-account-token #16109

@qingqueenking

Description

@qingqueenking

Simply returning the first one without checking its type is not robust.

return sa.Secrets[0].Name

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions