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.
Description of the problem/feature request
When enabling the
sorted-keyscheck, this also applies to themetadata.labelsandmetadata.annotationssections of all manifests. Since many charts include the user's custom labels and annotations via anincludedirective, 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.