--- title: "ADR 0049: tkn pac info, describe and logs degrade when cluster access is partial" --- * Status: accepted * Code: [`pkg/cmd/tknpac/info/install.go`](https://github.com/tektoncd/pipelines-as-code/blob/main/pkg/cmd/tknpac/info/install.go), [`pkg/cmd/tknpac/describe/describe.go`](https://github.com/tektoncd/pipelines-as-code/blob/main/pkg/cmd/tknpac/describe/describe.go), [`pkg/cmd/tknpac/logs/exec_unix.go`](https://github.com/tektoncd/pipelines-as-code/blob/main/pkg/cmd/tknpac/logs/exec_unix.go), [`pkg/cmd/tknpac/logs/exec_windows.go`](https://github.com/tektoncd/pipelines-as-code/blob/main/pkg/cmd/tknpac/logs/exec_windows.go) ## Context These commands run with the user's own kubeconfig, which often lacks cluster-wide rights and, for the Tekton dashboard, has no way to read the Pipelines-as-Code ConfigMap. ## Decision * `info` lists Repositories in all namespaces first. If that fails it lists the current namespace and, if that also fails, shows no repositories without an error. * `describe` reads the dashboard URL from the `TEKTON_DASHBOARD_URL` environment variable and, when set, installs a `consoleui.TektonDashboard` with it. The code does not read the ConfigMap for this. * With the events option, `describe` lists the Repository's events, then lists PipelineRuns by the repository label and fetches each PipelineRun's events, skipping runs whose events cannot be fetched. A failure to fetch Repository events prints a warning and continues with an empty list. * `logs` replaces the process with `syscall.Exec` on Unix (build tag `!windows`) and, on Windows, runs the command as a subprocess with the parent's stdin, stdout, stderr and the given environment, because `syscall.Exec` is not available there. ## Consequences * Output may be incomplete without an error when rights are missing. * The PipelineRun list is queried twice when events are requested; the code accepts this cost behind the flag. * On Windows the `tkn pac` process stays alive as the parent, unlike on Unix.