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
I am new to kubectl operator , so just an RFE to start with: It would be more intuitive to use the common query syntax for the kubectl operator commands:
e.g:
replace:
kubectl operator catalog list -A
with:
kubectl operator get catalogs --all-namespaces
kubectl operator get catalog --all-namespaces
kubectl operator get catalog -A
Same thing for add and remove , that can respectively changed to create and delete
The text was updated successfully, but these errors were encountered:
This syntax would generally work for the catalog subcommands, but it seems like it breaks down for verbs directly on operators.
Using the example from here, typing operator twice seems like unnecessary repetition to me.
With this plugin, it is difficult to totally align to existing kubectl idioms without introducing this repetition. kubectl subcommands are typically <verb> <noun>, but because this plugin contains so many different verbs, it made more sense to us to flip that and make this plugin use the <noun> <verb> style.
Hi @joelanford , yes, this repetition may look a bit heavy in the case you mentionned; but, that's a drawback to have consistency. And this repetition may only occur for operator .
In terms of user experience I am willing to accept this especially, if I have some short names that I can use to avoid this repetition:
kubectl operator get ops
kubectl operator get subs
kubectl operator get cats # not the one you think about
That would be more convenient for all kubectl/oc users and it will avoid to do a mental gym every time to remember that the order is reversed.
Also, intensive users may for sure, use an alias kop=$(kubectl operator) (if it works, it seems not :-) ) and will do things like:
Hi all,
I am new to
kubectl operator
, so just an RFE to start with: It would be more intuitive to use the common query syntax for thekubectl operator
commands:e.g:
replace:
with:
Same thing for
add
andremove
, that can respectively changed tocreate
anddelete
The text was updated successfully, but these errors were encountered: