-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Add control API to pause and resume autoBuild, autoDeploy and autoSync #4145
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
Conversation
Codecov Report
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried this out locally, and I'm seeing strange behavior with the microservices
example. when I set auto-deploy
to false with curl -X POST http://localhost:50052/v1/auto_execute -d '{"deploy": false}'
, changes aren't triggering a rebuild when they should be. at first glance I don't see any copy paste errors, but can you try this example out and see if you're seeing the same issue?
also, it would be great if we could expose the state of each "switch" in the exposed state
object. sometimes I lose track of where I am, and it would be nice to have a way to tell. this would also be useful for the IDEs to integrate this so they wouldn't have to keep track in the client (though they may anyway). this could come in a follow up PR though
I think that's because |
It should be there as |
# Conflicts: # integration/dev_test.go # pkg/skaffold/runner/new.go
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is looking great! just tried it out locally and it works exactly how i'd expect. my only comment is i think it would be nice if the server was able to tell me when i'm providing a malformed response or an unsupported HTTP method - I was trying POST
for a while, and malformed payloads as well, and the server just responds with {}
. it would also be nice if the server could tell me if i'm trying to flip the trigger to a position it's already in, e.g. if we've already turned off auto-build, and we try to again, the server could send a quick message saying "auto building is already disabled" or something.
these are just improvements though, and could come in follow up PRs.
Fixes: #2806
Description
Add control API to pause and resume autoBuild, autoDeploy and autoSync
User facing changes (remove if N/A)
API Contract
