-
Notifications
You must be signed in to change notification settings - Fork 1
On requests to Kubernetes clusters with expired tokens a lot of errors are thrown #100
Copy link
Copy link
Open
Description
When you access a cluster which has exec credentials using this CLI and the token is expired, an entire screen of errors gets thrown. Not only once:
ERROR
Failed to get cluster credentials: unauthenticated: token has expired. The API token has expired at 2026-01-29
20:03:51 +0100 CET. Create a new API token or use the login command.
E0203 16:30:35.960491 216203 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get \"https://<redacted>.metalstackcloud.io/api?timeout=32s\": getting credentials: exec: executable /home/gerrit/git/github.com/metal-stack-cloud/cli/bin/metal-linux-amd64 failed with exit code 1"
ERROR
Failed to get cluster credentials: unauthenticated: token has expired. The API token has expired at 2026-01-29
20:03:51 +0100 CET. Create a new API token or use the login command.
E0203 16:30:36.176912 216203 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get \"https://<redacted>.metalstackcloud.io/api?timeout=32s\": getting credentials: exec: executable /home/gerrit/git/github.com/metal-stack-cloud/cli/bin/metal-linux-amd64 failed with exit code 1"
+ more than 10 repititions
I would expect only a single error gets thrown.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels