-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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 an option to control if play kube should start the pod #8363
Add an option to control if play kube should start the pod #8363
Conversation
@@ -64,6 +64,10 @@ Require HTTPS and verify certificates when contacting registries (default: true) | |||
then TLS verification will be used. If set to false, then TLS verification will not be used. If not specified, | |||
TLS verification will be used unless the target registry is listed as an insecure registry in registries.conf. | |||
|
|||
#### **--create-only**, **-c** |
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.
move this up to line 38 so the options will be listed alphabetically (with the exception of help)
@AlbanBedel you've a lint error and I don't think you signed your PR which our CI requires ( Otherwise the change LGTM |
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 also has to be wired into the api and remote client.
Server logic here: pkg/api/handlers/libpod/play.go
Client logic here: pkg/bindings/play/play.go
API docs here: pkg/api/server/register_play.go
How about the option be --now, similar to systemctl enable service --now. The default is true, to be backwards compatible and --now=false, gives you this functionality. |
In the context of a command named |
I am not a big fan of options with a "-" inside of them, which is one of the reasons, I wanted to make the change. |
b522fa2
to
3ed2382
Compare
Having play kube start the pod is not always appropriate, one might for example like to have the pod running as a set of systemd services. Add a `start` option to the command line and API to control if the pod should be started or not; it defaults to true for backward compatibility. Signed-off-by: Alban Bedel <[email protected]>
3ed2382
to
7ab936e
Compare
In this new version:
@TomSweeneyRedHat The commit has my SOB, I just removed it from the PR description. |
LGTM |
The ubuntu-19 root tests aren't happy. Not sure if it's a known issue or not. |
LGTM |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: AlbanBedel, rhatdan The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Having play kube start the pod is not always appropriate, one might
for example like to have the pod running as a set of systemd services.
This new option allow to skip starting the pod.