Files
Dan Budris 7a094d2757 fix(cli): say what to do when the NVKE API refuses nvkectl (#2356)
* fix(cli): say what to do when the NVKE API refuses nvkectl

A 401, or a 403 from the API's authentication or authorization, now ends
with what the caller can do: check the kubeconfig and log in again, ask
to be admitted, or ask for a role. Any other 403, such as one from a
proxy in front of the API, keeps the server's message alone. Delete
cluster now formats its error like every other call instead of printing
the raw JSON body.

Signed-off-by: dbudris <dbudris@nvidia.com>

* fix(cli): drop the empty message before a refusal hint

A refusal with an empty body rendered as '401 Unauthorized: : the NVKE API ...'. Use the hint alone when there is no message.

Signed-off-by: dbudris <dbudris@nvidia.com>

---------

Signed-off-by: dbudris <dbudris@nvidia.com>
2026-11-23 16:23:48 +00:00
..