Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: error executing template "{{.data.token | base64decode}}": template: output:1:16: executing "output" at <base64decode>: invalid value; expected string #7094

Closed
ttmars opened this issue May 11, 2022 · 2 comments
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@ttmars
Copy link

ttmars commented May 11, 2022

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

@ttmars ttmars added the kind/bug Categorizes issue or PR as related to a bug. label May 11, 2022
@floreks
Copy link
Member

floreks commented May 11, 2022

Ref: #6967
Compatibility matrix: https://github.com/kubernetes/dashboard/releases/tag/v2.5.1

v1.24 is not officially supported at this time. Once we'll update our backend to support it, documentation will be updated also.

/close

@k8s-ci-robot
Copy link
Contributor

@floreks: Closing this issue.

In response to this:

Ref: #6967
Compatibility matrix: https://github.com/kubernetes/dashboard/releases/tag/v2.5.1

v1.24 is not officially supported at this time. Once we'll update our backend to support it, documentation will be updated also.

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

3 participants