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 executing template "{{.data.token | base64decode}}": template: output:1:16: executing "output" at <base64decode>: invalid value; expected string #7081

Closed
bmmpp opened this issue May 10, 2022 · 7 comments
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@bmmpp
Copy link

bmmpp commented May 10, 2022

What happened?

error executing template "{{.data.token | base64decode}}": template: output:1:16: executing "output" at : invalid value; expected string
when create user account

What did you expect to happen?

get sa token to login dashboard

How can we reproduce it (as minimally and precisely as possible)?

N/A

Anything else we need to know?

No response

What browsers are you seeing the problem on?

Chrome

Kubernetes Dashboard version

2.5.1

Kubernetes version

1.24

Go version

No response

Node.js version

No response

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

floreks commented May 10, 2022

Not enough information about the issue and how to reproduce it. You can reopen once the issue template is filled properly and it is clear what is the issue and how to reproduce it.

/close

@k8s-ci-robot
Copy link
Contributor

@floreks: Closing this issue.

In response to this:

Not enough information about the issue and how to reproduce it. You can reopen once the issue template is filled properly and it is clear what is the issue and how to reproduce it.

/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.

@ttmars
Copy link

ttmars commented May 11, 2022

I ran into the same problem

@bmmpp
Copy link
Author

bmmpp commented May 11, 2022

I ran into the same problem

Do you have any idea? According to the steps on the official website, I can't get the token to login dashboard!

@ttmars
Copy link

ttmars commented May 11, 2022

I ran into the same problem

Do you have any idea? According to the steps on the official website, I can't get the token to login dashboard!

I solved,create token:
kubectl -n kubernetes-dashboard create token admin-user

@bmmpp
Copy link
Author

bmmpp commented May 11, 2022 via email

@robertgartman
Copy link

In case you arrive here searching for a clue - see breaking changes in Kubernetes 1.24: point 3 regarding LegacyServiceAccountTokenNoAutoGeneration

You can create the secret and wire it with the ServiceAccount. Note kubernetes.io/service-account.name: "sa-name" in this example: https://kubernetes.io/docs/concepts/configuration/secret/#service-account-token-secrets

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

5 participants