Skip to content
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

Open
wants to merge 3 commits into
base: u/mpiano/SEC-19862_api
Choose a base branch
from
Open

Conversation

piax93
Copy link
Contributor

@piax93 piax93 commented Mar 19, 2025

Last portion of #3986, with the updated logic to reflect the updated API conventions introduced in #4022.

@piax93 piax93 requested a review from a team as a code owner March 19, 2025 16:07
@piax93 piax93 force-pushed the u/mpiano/SEC-19862_client branch from c31b8f6 to 205f2b7 Compare March 19, 2025 16:09
Comment on lines +86 to +91
exec_command = KUBECTL_CMD_TEMPLATE.format(
cluster=args.cluster,
namespace=poll_response.namespace,
pod=poll_response.pod_name,
token=token_response.token,
)
Copy link
Member

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)

Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants