CanopyTax / ckube

A cli to simplify working with kubectl for some common workflows
MIT License
132 stars 10 forks source link

Support label selectors #2

Closed chriskirkland closed 6 years ago

chriskirkland commented 6 years ago

It would be nice to support selecting pods via labels as well as pod prefix. For instance, if I want to tail logs on all of my backend pods from different services (i.e. ckube logs -l tier=backend) or change a setting in all of my frontend pods (i.e. ckube exec -l tier=frontend ...).

devonmoss commented 6 years ago

The -l selector is now functional with ls, logs, top. I am trying to work through some strangeness with exec due to positional arguments. Pull requests accepted :)

devonmoss commented 6 years ago

no action on this so I am closing.