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

Support stdin kubeconfig for add command #442

Open
bcdurden opened this issue Jul 22, 2022 · 2 comments
Open

Support stdin kubeconfig for add command #442

bcdurden opened this issue Jul 22, 2022 · 2 comments
Assignees
Labels
kind/feature ategorizes issue or PR as related to a new feature. question Further information is requested

Comments

@bcdurden
Copy link

Is your feature request related to a problem? Please describe.
Potentially, but likely not. Immutable workstations may have issue downloading files, something like this could also be used to generate a dynamic kubeconfig to be consumed by another tool

Describe the solution you'd like
Using MacOS terminal as an example, I'd like to use pbpaste or similar utility (echo) to feed a kubeconfig to kubecm add from stdin.

Describe alternatives you've considered
pbpaste can be used to output to a file that can then be read into kubecm add using the previous example. However, this doesn't flow as well and other K8S utilities make use of piping natively which would enable this utility to become part of that flow. See Carvel's toolsuite for an example (heavily used in VMware's TKG products as a replacement for helm with many extra features).

Additional context
For Rancher products, this would make for a very useful utility in copy-pasting kubeconfigs from the Rancher Server UI without needing to download the file itself

@sunny0826 sunny0826 self-assigned this Aug 1, 2022
@sunny0826 sunny0826 added the kind/feature ategorizes issue or PR as related to a new feature. label Aug 1, 2022
@sunny0826
Copy link
Owner

Thanks for your feedback, I will implement this feature

@sunny0826
Copy link
Owner

@bcdurden HI, Maybe this PR #282 does what you want it to do.

I read the kapp description and what you want is something like kapp -y deploy -a my-app -f <(kustomize build . /my-app)?

@sunny0826 sunny0826 added the question Further information is requested label Sep 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature ategorizes issue or PR as related to a new feature. question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants