SumoLogic / sumologic-kubernetes-collection

Sumo Logic collection solution for Kubernetes
Apache License 2.0
145 stars 184 forks source link

Sort YAML file contents alphabetically #2975

Open andrzej-stencel opened 1 year ago

andrzej-stencel commented 1 year ago

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 commented 1 year ago

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.