Commit 6d280ec
committed
inspectalerts: improve error message when no bearer token is available
When using certificate-based authentication (e.g. system:admin from
installer kubeconfig), the monitoring API on Thanos Querier rejects
the request because kube-rbac-proxy only supports TokenReview-based
authentication on the web port (9091). The previous error message
("no token is currently in use for this session") did not explain
why it failed or what the user should do.
Update the message to clarify that token-based auth is required and
point users to 'oc login'
Signed-off-by: Daniel Mellado <dmellado@fedoraproject.org>1 parent a052bd4 commit 6d280ec
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
| 102 | + | |
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| |||
0 commit comments