mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-13 19:36:22 +00:00
Automatic merge from submit-queue Display line number on JSON errors Related issue: https://github.com/kubernetes/kubernetes/issues/12231 This PR will introduce line numbers for all JSON errors in the CLI: (this is existing error reporting for YAML) ```console $ kubectl create -f broken.yaml yaml: line 8: mapping values are not allowed in this context ``` (this is error reporting proposed in this PR for JSON) ```console $ kubectl create -f broken.json json: line 35: invalid character '{' after object key ``` (and this is the current reporting:) ```console $ kubectl create -f broken.json invalid character '{' after object key ``` []()