cyberark / kubeletctl

A client for kubelet
Apache License 2.0
713 stars 81 forks source link

Support a `--token` flag #15

Closed yuvalavra closed 3 years ago

yuvalavra commented 3 years ago

Adding a --token flag would improve usability, at least for me. The command would then look something like:

$ kubeletctl --token=<token> --server=<addr> <command>

Using a token is probably also possible if you create an kubeconfig file and then use the --config flag, but I'd rather not do that.

g3rzi commented 3 years ago

I added support in --token and --token-file flags, I tested and it worked fine from my end.

I published new version 1.8: https://github.com/cyberark/kubeletctl/releases/tag/v1.8

Thanks for the suggestion :)

yuvalavra commented 3 years ago

Works on my side as well, thank you