I would like to return all ingress resources that do not contain a specific annotation. Using the following command returns an error:
kubectl get ingress --all-namespaces -o=jsonpath='{.items[?(!(@.metadata.annotations.kubernetes\.io/ingress\.class))].metadata.name}'
error:
error parsing jsonpath {.items[?(!(@.metadata.annotations.kubernetes\.io/ingress\.class))].metadata.name}, unclosed array expect ]