Skip to content
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

engine: do not start local resources with invalid probe specs #4158

Merged

Conversation

milas
Copy link
Contributor

@milas milas commented Feb 4, 2021

Original behavior tried to fail gracefully, i.e. let the resource
start and just mark it as ready with a warning logged that the probe
spec was bad. There was a bug, however, which meant that dependent
resources would still see it as not ready and not start.

In the end, it seems that this behavior was more confusing than
helpful, so it's better to just prevent the resource from startup
if the probe spec is invalid.

Some validation has also been pushed down to the Tiltfile level,
which will provide better errors with line numbers. It's worth
noting, however, that there will likely always be some validation/
cases that we cannot catch during Tiltfile parsing, so the logic
in the controller is still important.

Closes #4156.

Original behavior tried to fail gracefully, i.e. let the resource
start and just mark it as ready with a warning logged that the probe
spec was bad. There was a bug, however, which meant that dependent
resources would still see it as not ready and not start.

In the end, it seems that this behavior was more confusing than
helpful, so it's better to just prevent the resource from startup
if the probe spec is invalid.

Some validation has also been pushed down to the `Tiltfile` level,
which will provide better errors with line numbers. It's worth
noting, however, that there will likely always be some validation/
cases that we cannot catch during `Tiltfile` parsing, so the logic
in the controller is still important.
@milas milas added the bug Something isn't working label Feb 4, 2021
@milas milas requested a review from landism February 4, 2021 15:57
@shortcut-integration
Copy link

@milas milas merged commit 164b086 into master Feb 4, 2021
@milas milas deleted the milas/ch11119/local-resources-with-invalid-readiness-probe branch February 4, 2021 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

local resources with invalid readiness probe specs cause dependent resources to never start
2 participants