seek-oss / kpt-functions

A library of Kpt functions for extending Kpt's functionality
MIT License
3 stars 3 forks source link

Fix annotation ordering flake #27

Closed Niksko closed 3 years ago

Niksko commented 3 years ago

Fixes #16

Everything I've read seems to indicate that the ordering of annotations as output by kyaml is deterministic. However there's still a test that occasionally flakes.

This is a bit of a hack, but it essentially re-writes all of the annotations in a sorted order, to ensure that their order is stable.