-
Notifications
You must be signed in to change notification settings - Fork 18
Use a dedicated timeout for each package #64
Conversation
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.
Suggestions for the help commands to be more indicative.
docs/pupernetes_daemon_run.md
Outdated
@@ -44,8 +44,8 @@ pupernetes daemon run state/ --job-type systemd | |||
--gc duration grace period for the kubelet GC trigger when draining run, no-op if not draining (default 1m0s) | |||
-h, --help help for run | |||
--job-type string type of job: fg or systemd (default "fg") | |||
--run-timeout duration timeout for run (default 7h0m0s) |
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.
--run-timeout duration Maximum time to run pupernetes for until self shutdown
docs/pupernetes_wait.md
Outdated
-u, --unit-to-watch string Systemd unit name to watch (default "pupernetes.service") | ||
--wait-timeout duration Timeout for wait (default 15m0s) |
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.
--wait-timeout duration Maximum time to download the required images and set up pupernetes
docs/pupernetes_reset.md
Outdated
-h, --help help for reset | ||
--api-address string Address for the pupernetes API ip:port (default "127.0.0.1:8989") | ||
-a, --apply Apply manifests-api after reset, useful when resetting kube-system namespace | ||
--client-timeout duration timeout for reset (default 1m0s) |
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.
--client-timeout duration Maximum time waited for a pupernetes command to be executed
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.
👯
What does this PR do?
Multiple timeouts referenced a single viper entry.
This discard any user input value.
I added a customisable timeout for the reset command.
I removed few viper calls from the run package see #40