You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @guessi , thanks a lot for fast implementation!
I quickly tested. I meant a bit different function, not the current one. It seems version 1.19.1 does only either match or inverted match, but not the both together.
So I positive grep for 'webapp' , and in same command, I negative grep for word 'connection-test'.
I'd get only below printed:
pci-ess-webapp-5f4fbc6666-m9pm9
In current implementation, it seems the addon cannot grep both positive and negative at same time. When I use below command:
kubectl grep pods webapp -v connection-test
then the string after -v is ignored, and what it will do is to invert grep for word 'webapp' and I get the opposite result. The order of '-v' and the argument after it should matter.
Hi,
Thanks for your great kubectl addon!
I have a feature request, to support negate match. That is '-v' argument in grep.
Example, I have two below pods:
I want to print pods with 'webapp' string in name, except those with names 'connection-test' in it.
Something like this would be useful:
kubectl grep pods webapp -v connection-test
Thanks in advance!
György
The text was updated successfully, but these errors were encountered: