Skip to content

[FEATURE_REQUEST] Allow to disable sorted-keys for labels and annotations #1194

Description

@SchoolGuy

Description of the problem/feature request

When enabling the sorted-keys check, this also applies to the metadata.labels and metadata.annotations sections of all manifests. Since many charts include the user's custom labels and annotations via an include directive, there is no way to ensure the order of those keys.

Description of the existing behavior vs. expected behavior

Currently, the check can only be globally enabled. For the HelmChart use case, I would like to be able to selectively disable this for labels and/or annotations.

Additional context

The initial feature was requested in #451.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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