This message was deleted.
# general
a
This message was deleted.
h
I can do grep obviously, but I was hoping for something slightly more
kubectl
native if possible
c
I think it updates the status on the resource, have you looked at the full yaml of it to see if the information you need is in there?
h
Yeah it is, I’m trying to get at it with some jsonpath business rn. Attempted --field-selector first but might be misunderstanding that
I’ll have to confirm whether the
conditions
field ever has
Completed
and
False
c
field selectors are like label selectors, but even more restricted in terms of what you can filter your list by. If you’re trying to print out a specific field from the resource then -o=jsonpath is probably what you want
👍 1
h
Cool thanks for the assist, I think this’ll work
Copy code
kubectl -n cattle-resources-system get restore your-restore-resource -o jsonpath='{.status.conditions[*].message}{"\n"}'

Completed