-
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 --configmap to podman-remote kube play #18005
Conversation
@vrothberg @baude was there a reason that this flag was disabled for the remote case? I tested it out locally and it works fine with podman-remote but maybe there is something I am missing. |
It probably only works because you test it on the same machine. Passing a path to the server will work in this scenario but what if the client is on another machine? What would need to happen is to tar up the file, send it over to the server and use it there. There are other flags/features (e.g., build) that don't (yet?) work for the same reason. |
Yes this came up before and we should not send local paths via API. For historical reference: #12243 |
That is a very clever idea 👍 |
329a66b
to
1948da4
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.
There are more SkipIfRemote's that should be removed in the e2e tests.
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.
LGTM, @vrothberg PTAL
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.
/lgtm
/hold
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: umohnani8, vrothberg 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 |
Enable the --configmap flag for the remote case of podman kube play. Users can pass in the paths to the configmap files for kube play to use when creating the pods and containers from a kube yaml file. The configmap file is read and the contents are appended to the contents of the main yaml file before passed to the remote client. Signed-off-by: Urvashi Mohnani <[email protected]>
@@ -161,6 +161,10 @@ func playFlags(cmd *cobra.Command) { | |||
waitFlagName := "wait" | |||
flags.BoolVarP(&playOptions.Wait, waitFlagName, "w", false, "Clean up all objects created when a SIGTERM is received or pods exit") | |||
|
|||
configmapFlagName := "configmap" | |||
flags.StringSliceVar(&playOptions.ConfigMaps, configmapFlagName, []string{}, "`Pathname` of a YAML file containing a kubernetes configmap") |
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.
Nit, but it probably ought to be "Kubernetes"
flags.StringSliceVar(&playOptions.ConfigMaps, configmapFlagName, []string{}, "`Pathname` of a YAML file containing a kubernetes configmap") | |
flags.StringSliceVar(&playOptions.ConfigMaps, configmapFlagName, []string{}, "`Pathname` of a YAML file containing a Kubernetes configmap") |
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.
Will fix in a follow up PR.
@@ -653,8 +653,6 @@ spec: | |||
} | |||
|
|||
@test "podman kube play with configmaps" { | |||
skip_if_remote "the configmap argument is supported only locally" |
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.
Love, love, love all these removals!
One nit, otherwise LGTM |
@containers/podman-maintainers can I please get a lgtm here |
/lgtm |
/hold cancel |
Enable the --configmap flag for the remote case of podman
kube play. Users can pass in the paths to the configmap files
for kube play to use when creating the pods and containers from
a kube yaml file. The configmap file is read and the contents are
appended to the contents of the main yaml file before passed to the
remote client.
Fixes #17513
Does this PR introduce a user-facing change?