Skip to content

Tekton Dashboard Cannot Get Version #3124

@kjq

Description

@kjq

Doing a fresh install (0.78.1) using the Helm chart the TektonDashboard has this error.

I believe before we may of modified the RBAC permissions manually to fix this.

There is a slack conversation where this came up though not directly related @ https://tektoncd.slack.com/archives/CKZQUT3MH/p1765846498548289

{"level":"info","ts":1766072691.695991,"caller":"router/router.go:126","msg":"Adding Kube API"}
{"level":"info","ts":1766072691.6960745,"caller":"router/router.go:137","msg":"Adding Dashboard APIs"}
{"level":"info","ts":1766072691.696104,"caller":"router/router.go:40","msg":"Adding Web API"}
{"level":"info","ts":1766072691.6961162,"caller":"router/router.go:77","msg":"Adding API for properties"}
{"level":"info","ts":1766072691.696125,"caller":"router/router.go:64","msg":"Adding API for health"}
{"level":"info","ts":1766072691.6961336,"caller":"router/router.go:70","msg":"Adding API for readiness"}
{"level":"error","ts":1766072691.6999228,"caller":"endpoints/dashboard.go:27","msg":"Error getting the Tekton dashboard info ConfigMap: configmaps \"dashboard-info\" is forbidden: User \"system:serviceaccount:tekton-pipelines:tekton-dashboard\" cannot get resource \"configmaps\" in API group \"\" in the namespace \"tekton-pipelines\"","stacktrace":"github.com/tektoncd/dashboard/pkg/endpoints.getVersion\n\tgithub.com/tektoncd/dashboard/pkg/endpoints/dashboard.go:27\ngithub.com/tektoncd/dashboard/pkg/endpoints.Resource.GetDashboardVersion\n\tgithub.com/tektoncd/dashboard/pkg/endpoints/dashboard.go:36\nmain.main\n\tgithub.com/tektoncd/dashboard/cmd/dashboard/main.go:98\nruntime.main\n\truntime/proc.go:283"}
{"level":"error","ts":1766072691.699954,"caller":"endpoints/dashboard.go:39","msg":"Error getting the Tekton Dashboard deployment version. Version is unknown","stacktrace":"github.com/tektoncd/dashboard/pkg/endpoints.Resource.GetDashboardVersion\n\tgithub.com/tektoncd/dashboard/pkg/endpoints/dashboard.go:39\nmain.main\n\tgithub.com/tektoncd/dashboard/cmd/dashboard/main.go:98\nruntime.main\n\truntime/proc.go:283"}
{"level":"info","ts":1766072691.6999636,"caller":"dashboard/main.go:98","msg":"Tekton Dashboard version "}
{"level":"info","ts":1766072691.6999722,"caller":"dashboard/main.go:99","msg":"Starting to serve on [::]:9097"}

It also seems to yield this error in the TektonConfig (kubectl describe tektonconfig config)

Status:
  Annotations:
    operator.tekton.dev/pre-upgrade-version:  v0.78.0
  Conditions:
    Last Transition Time:  2025-12-18T14:52:04Z
    Status:                True
    Type:                  ComponentsReady
    Last Transition Time:  2025-12-18T14:30:23Z
    Message:               PostReconciliation failed with message: TektonDashboard: reconcile again and proceed
    Reason:                Error
    Status:                False
    Type:                  PostInstall
    Last Transition Time:  2025-12-18T14:29:13Z
    Status:                Unknown
    Type:                  PostUpgrade
    Last Transition Time:  2025-12-18T14:29:13Z
    Status:                True
    Type:                  PreInstall
    Last Transition Time:  2025-12-18T14:29:13Z
    Status:                True
    Type:                  PreUpgrade
    Last Transition Time:  2025-12-18T14:52:04Z
    Message:               PostReconciliation failed with message: TektonDashboard: reconcile again and proceed
    Reason:                Error
    Status:                False
    Type:                  Ready
  Version:                 v0.78.0
Events:                    <none>

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions