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

Merged
merged 3 commits into from
Mar 24, 2025
Merged

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.

@nemacysts nemacysts merged commit 8723ebe into u/mpiano/SEC-19862_api Mar 24, 2025
10 checks passed
piax93 added a commit that referenced this pull request Mar 25, 2025
Last portion of #3986, with the updated logic to reflect the updated API conventions introduced in #4022.
nemacysts pushed a commit that referenced this pull request Mar 25, 2025
This was meant to be included in the last release but I (luisp) don't know how to read and merged things in the "wrong" order. 

This correctly merges in the following PRs:

* cleanup for remote-run resources (#4024)

Clean up logic for the (meant to be) ephemeral resources which are created in remote-run invocations (#4022).

* new remote-run cli (#4025)

Last portion of #3986, with the updated logic to reflect the updated API conventions introduced in #4022.
@piax93 piax93 deleted the u/mpiano/SEC-19862_client branch March 27, 2025 17:08
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