error: error executing template "{{.data.token | base64decode}}": template: output:1:16: executing "output" at <base64decode>: invalid value; expected string #7094
Labels
kind/bug
Categorizes issue or PR as related to a bug.
What happened?
When I Getting a Bearer Token
Execute the flow command:
kubectl -n kubernetes-dashboard get secret $(kubectl -n kubernetes-dashboard get sa/admin-user -o jsonpath="{.secrets[0].name}") -o go-template="{{.data.token | base64decode}}"
An error occurred:
error: error executing template "{{.data.token | base64decode}}": template: output:1:16: executing "output" at : invalid value; expected string
What did you expect to happen?
A Token
How can we reproduce it (as minimally and precisely as possible)?
Refer to official documentation
Anything else we need to know?
No response
What browsers are you seeing the problem on?
No response
Kubernetes Dashboard version
latest
Kubernetes version
v1.24.0
Go version
1.18.1
Node.js version
No response
The text was updated successfully, but these errors were encountered: