sumologic-kubernetes-collection icon indicating copy to clipboard operation
sumologic-kubernetes-collection copied to clipboard

Sort YAML file contents alphabetically

Open andrzej-stencel opened this issue 2 years ago • 1 comments

Chart version: v3.4.0

Is your feature request related to a problem? Please describe.

When I compare the resource definitions as output by the k8s API (e.g. with kubectl get sts -o yaml), I get the YAML contents sorted alphabetically. It would make it much easier to compare this output with the chart's templates if the templates were sorted as well.

Same thing with the OTC config files like https://github.com/SumoLogic/sumologic-kubernetes-collection/blob/v3.4.0/deploy/helm/sumologic/conf/logs/otelcol/config.yaml etc.

Describe the solution you'd like

I would like to have the YAML resource template files in the chart (in the https://github.com/SumoLogic/sumologic-kubernetes-collection/tree/v3.4.0/deploy/helm/sumologic directory) to be sorted alphabetically.

andrzej-stencel avatar Apr 07 '23 12:04 andrzej-stencel

Sorted the OTC configuration files alphabetically in #2976.

Ideally we also want to sort the resource template files like https://github.com/SumoLogic/sumologic-kubernetes-collection/blob/v3.4.0/deploy/helm/sumologic/templates/logs/otelcol/statefulset.yaml etc.

andrzej-stencel avatar Apr 11 '23 10:04 andrzej-stencel