Make it easy to have a button run its command inside a pod
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 10.1k
- Forks
- 413
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 6
Description
Describe the Feature You Want
Easily define a UIButton that runs a command inside a resource's pod.
Current Behavior
UIButton's commands run on the host machine.
A user can have a button trigger a command inside the pod by doing something like:
cmd='kubectl exec "$(tilt get kd $RESOURCE_NAME -ojsonpath='{.status.pods[0].name}')" /path/to/command'
Why Do You Want This?
services often have cli admin interfaces that run inside their pods (e.g., pgsql), and triggering these with buttons could be useful
Additional context
This is probably doable by a simple change to the uibutton extension that just wraps the command with something like the above kubectl exec.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the UIButton extension implementation and how it currently executes commands on the host. Review the issue's kubectl exec example and determine how a resource's pod should be selected. Done means a UIButton can run its configured command inside the resource pod, with coverage for the supported behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kubernetes
- Domain
- cli, devops
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100