dekorateio / dekorate

Tools for generating Kubernetes related manifests.
Apache License 2.0
467 stars 101 forks source link

Sort generated deployment env by name #1295

Open antoniomacri opened 1 month ago

antoniomacri commented 1 month ago

I'm actually using dekorate via Quarkus Kubernetes extension.

The generated env in a deployment is shuffled every time the yaml is regenerated. This causes a problem since the manifest is not idempotent.

This is the issue on Quarkus: https://github.com/quarkusio/quarkus/issues/39167

Would it be possibile to preserve the ordering?

antoniomacri commented 1 week ago

I'm looking into it, but having some difficulty trying to implement this in dekorate.

Any hint about where to put this logic?