Namespaced controller should not list cluster namespaces #2603
Labels
kind/bug
Categorizes issue or PR as related to a bug.
kind/cleanup
Categorizes issue or PR as related to cleaning up code, process, or technical debt.
Expected Behavior
#2144 added a command
--namespace
to allow the controller to be used in a more namespace-scoped way, watching only a single namespace. Accordingly, we use a restricted ClusterRole that does not permit any cluster-level namespace access.Actual Behavior
Tekton controller errors trying to list cluster namespaces. Fortunately, Tekton continues anyway and functions fine.
Steps to Reproduce the Problem
Set a specific namespace Tekton should watch and check the logs when it starts.
Lockdown the ClusterRole to something more comfortable.
Additional Info
The text was updated successfully, but these errors were encountered: