-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Apply kubernetes namespaces before all other objects #602
Comments
The implementation is in incorrectly named branch 756-include-errors-in-sync-events |
Since:
does that mean we effectively get this automatically for Helm users? |
It looks like Helm does a crude but effective sort, such that it applies kinds that can be dependencies before other kinds. We could do that too, since we stage everything before applying. |
Note that the original issue as it was originally filed was fixed by #812. |
@marccarre "dependencies" in this issue specifically referred to the dependency a namespaced kubernetes object has on the namespace object itself. Applying resources used to fail depending on the order in which it was done because we could attempt to create an object in a namespace which hasn't yet been created. Helm dependencies are entirely separate from this aspect of Flux. If you think it's something we should be paying attention to, please file a new issue. |
At the minute we load all the manifests and apply them one by one. If you have, say, resources in a namespace that is new, they can fail if the namespace is not created before the files are.
Ultimately, this will succeed on the next sync. But it would have faster turnaround, and look less worrying, if it succeeded the first time around. As an approximation, just running namespaces before resources would be a start.
The text was updated successfully, but these errors were encountered: