-
Notifications
You must be signed in to change notification settings - Fork 1.7k
statusCheck in the skaffold.yaml is not used without --status-check= flag #7178
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
Comments
I'll look into this |
I was not able to replicate your results. Adding statusCheck: false to the examples/buildpacks/skaffold.yaml worked as expected. Can you try that example too? |
I tried to add statusCheck: false to that file and happened this issue.
Result of adding statusCheck: false (
And, result of adding statusCheck: false and --status-check= (
|
I have tried cloning the repo from scratch, building and running the example with no statuscheck and it works fine for me. Are you sure that you don't have some global configuration messing things up? Perhaps try clearing out your config. |
I checked default value of the status-check flag in the main branch and it is nil. I'll wait to release new version. Thank you! |
This issue has been fixed in the v1.37.0 release. |
Expected behavior
skaffold run
runs without status check only setting thestatusCheck
field of the deployment config stanza in the skaffold.yaml to false.Actual behavior
The statusCheck field in the skaffold.yaml is used only when value of the
--status-check
flag is nil.https://github.com/GoogleContainerTools/skaffold/blob/v1.36.1/pkg/skaffold/runner/deployer.go#L53-L60
However, the default value of the flag is true. So we have to use
--status-check=
.This seems like a strange behavior.
Information
Steps to reproduce the behavior
The text was updated successfully, but these errors were encountered: