diff --git a/pkg/kubectl/cmd/get.go b/pkg/kubectl/cmd/get.go index e0780a5b2bd..1c4d0654cc7 100644 --- a/pkg/kubectl/cmd/get.go +++ b/pkg/kubectl/cmd/get.go @@ -130,6 +130,7 @@ func RunGet(f *cmdutil.Factory, out io.Writer, cmd *cobra.Command, args []string SingleResourceType(). Latest(). Do() + err := r.Err() if err != nil { return err }