kubegen
                                
                                
                                
                                    kubegen copied to clipboard
                            
                            
                            
                        preserve order of creation
Some object, like namespace (which kubegen doesn't actually support directly), need to be created before other objects that reference them. A solution of some kind is needed. It's easy with lists, as they can be sorted, but for files it's uncertain. Oder should be idepotant for all other object, but perhaps this assumption should to be double-checked.
An easy fix would be to filter namespaces up the list when we flatten lists, so at least it is usable in stdout version.