-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(kubernetes): sort objects (#244)
* Sort kubernetes objects before applying. Instead of just applying namespces before everything else, let's sort all the objects. There's more inter-dependences between various kinds, e.g. CRDs need to be applied before the actual custom resources, StorageClasses before the PVCs, ... . Signed-off-by: Milan Plzik <milan.plzik@grafana.com> * Move object sorting to the Reconcile phase. As suggested in #244 (comment) , `Reconcile()` might be a better place for sorting, since we're already doing sort-of (pun intended) similar thing there. Signed-off-by: Milan Plzik <milan.plzik@grafana.com> * Fix review comments. Signed-off-by: Milan Plzik <milan.plzik@grafana.com>
- Loading branch information
Showing
2 changed files
with
62 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters