-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Add flag status-check-deadline
instead of default 10 minutes
#2591
Conversation
909d888
to
c52cff9
Compare
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'm starting to get hesitant about adding more CLI flags to skaffold, we already have a ton and I think it's getting a little overwhelming. would this be more suited toward a global config value instead? or a field in the deploy
stanza of the skaffold.yaml?
apiVersion: skaffold/v1beta13
kind: Config
deploy:
statusCheckDeadline: 5
@nkubala I thought about where this flag could be,
My thinking was k8 deploy check could be sensitive to all these hence embedding the health check flag in config would not work best. (users will have to change in The reason, i did not want I am more inclined to embed it as in config if the flag is deploy cluster independent |
I like the idea of adding it to the skaffold.yaml - and if people have one-off overrides they can file an issue for a flag. Chances are you set this once per profile and then you're golden. I wouldn't think this is a global config either, it is highly project specific. |
60caf89
to
e8a366e
Compare
e8a366e
to
23c170d
Compare
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.
it feels strange for this value to be an actual parsable "duration" in the config. can we just make it an int and then document that it refers to seconds? or maybe change the field itself to statusCheckDeadlineSeconds
? then we won't have to special case this one particular field in the validation of the config.
deploy:
statusCheckDeadline: 1 # refers to seconds, as per the docs
or
deploy:
statusCheckDeadlineSeconds: 1
Done, Add this as |
e57ed85
to
9b495b4
Compare
Change the deadline for deployments to stabilize from 10 mins to read from command line.
The flag's default value is 10m