kubectl-allctx icon indicating copy to clipboard operation
kubectl-allctx copied to clipboard

How to specify --namespace?

Open ahmetb opened this issue 3 years ago • 1 comments

I am having serious trouble understanding how this plugin works without reading its source code.

$ k allctx --like c0 get pods -n compute-system
Error from server (NotFound): pods "compute-system" not found
$ k allctx --like c0  -n compute-system get pods
Error: flags cannot be placed before plugin name: --context=...
Error: flags cannot be placed before plugin name: --context=...
Error: flags cannot be placed before plugin name: --context=...
Error: flags cannot be placed before plugin name: --context=...
Error: flags cannot be placed before plugin name: --context=...
Error: flags cannot be placed before plugin name: --context=...

ahmetb avatar Feb 26 '22 01:02 ahmetb

Don't use abbreviations. Just use --namespace

foursunZero avatar Jun 27 '24 09:06 foursunZero