Skip to content
This repository has been archived by the owner on Jun 13, 2023. It is now read-only.

Use a dedicated timeout for each package #64

Merged
merged 2 commits into from
Jun 21, 2018

Conversation

JulienBalestra
Copy link
Collaborator

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

@JulienBalestra JulienBalestra added the bug Something isn't working label Jun 21, 2018
@JulienBalestra JulienBalestra added this to the v0.5.0 milestone Jun 21, 2018
@JulienBalestra JulienBalestra requested a review from a team June 21, 2018 20:57
Copy link
Contributor

@CharlyF CharlyF left a 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.

@@ -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)
Copy link
Contributor

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

-u, --unit-to-watch string Systemd unit name to watch (default "pupernetes.service")
--wait-timeout duration Timeout for wait (default 15m0s)
Copy link
Contributor

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

-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)
Copy link
Contributor

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

Copy link
Contributor

@CharlyF CharlyF left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👯

@JulienBalestra JulienBalestra merged commit 797f11e into master Jun 21, 2018
@JulienBalestra JulienBalestra deleted the JulienBalestra/timeouts branch June 21, 2018 21:54
@JulienBalestra JulienBalestra mentioned this pull request Jul 2, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working refactoring
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants