New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
namespace applied out of order #3421
Comments
Yeah that's the expected behavior :( we're good at sorting YAMLs in a reasonable order within a single resource but bad at doing it between resources. Spitballing some ways to address this:
The easiest seems to be #1 |
My understanding of how this used to work:
With parallel builds, these no longer suffice to ensure we apply namespaces first. Both of the solutions you describe seem fine. Relatedly, the new |
Tagging this "good first issue" IF the solution is "uncategorized yaml shouldn't be parallelizable". (the "infer dependencies" solution is quite a bit gnarlier) |
Is this a possible solution for the comment on this line? https://github.com/tilt-dev/tilt-extensions/blob/master/helm_remote/Tiltfile#L41 |
Nope :( Because that still registers the namespace as yaml, to be deployed in parallel with other yaml |
Create a Tiltfile with two bits of YAML
Expected behavior:
Tilt should deploy the namespace before deploying the Deployment
Actual behavior:
Tilt tries to deploy them in parallel, and there's a race to see which one gets applied first
It's easier to repro if the uncategorized set of resources contains a bunch of unrelated resources that take time to apply (like CRDs). Seems like a regression of #2348, among others
@landism @maiamcc do either of you have ideas on how this is expected to work? I guess an easy way to fix it is to not parallelize the uncategorized yaml. A better way might be to try to infer resource deps
The text was updated successfully, but these errors were encountered: