-
Notifications
You must be signed in to change notification settings - Fork 243
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
new remote-run cli #4025
base: u/mpiano/SEC-19862_api
Are you sure you want to change the base?
new remote-run cli #4025
Conversation
c31b8f6
to
205f2b7
Compare
exec_command = KUBECTL_CMD_TEMPLATE.format( | ||
cluster=args.cluster, | ||
namespace=poll_response.namespace, | ||
pod=poll_response.pod_name, | ||
token=token_response.token, | ||
) |
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'd be nice to use the kubernetes clientlib for this - but it looks like that'd result in a lot more code (and it's probably not worth the effort just to not have to rely on our kubectl wrappers)
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.
We tried, but it's a mess. You effectively have to build your own REPL to do input / output with the python client, and that's really not worth the effort when you can just use kubectl to do the job.
Last portion of #3986, with the updated logic to reflect the updated API conventions introduced in #4022.