Mahesan G:
Why k get pv --sort-by=‘{.items[*].spec.capacity.storage}’ this not giving output even though its following the correct order and this k get pv --sort-by=.spec.capacity.storage works why could anyone explain
unnivkn:
controlplane $ k get pv -o jsonpath=‘{.items[*].spec.capacity.storage}’ --sort-by=.spec.capacity.storage
10Gicontrolplane $
Mohamed Ihsan:
Let me put in this way. When you use sort-by the value you enter is the path of a particular field where as in Jason path you enter the full query expression.
Mahesan G:
Thanks for the explanation