-
Notifications
You must be signed in to change notification settings - Fork 239
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
tkn taskrun list is throwing error regarding cluster scope permissions #1874
Comments
piyush-garg
added a commit
to piyush-garg/cli
that referenced
this issue
Jan 31, 2023
This will fix the issue for taskrun list command not working and throwing error regarding cluster-scope as the client is not getting initialized before and namespace is empty if not passed specifically. The client initialization happening in every cmd init was removed because not required for all cmds. This revert thats and add exception for bundle cmds based on annotation available on cmd Fix tektoncd#1874
4 tasks
piyush-garg
added a commit
to piyush-garg/cli
that referenced
this issue
Feb 1, 2023
This will fix the issue for taskrun list command not working and throwing error regarding cluster-scope as the client is not getting initialized before and namespace is empty if not passed specifically. The client initialization happening in every cmd init was removed because it was getting initialized in all cmds but not required in cmd like bundle and hence bundle cmd failing with kube config error which was not required. This reverts that and add exception for bundle cmds based on annotation available on cmd. Now all cmd will have client initialization and cmd with annotation kubernetes=false will be exempted. Fix tektoncd#1874
tekton-robot
pushed a commit
that referenced
this issue
Feb 1, 2023
This will fix the issue for taskrun list command not working and throwing error regarding cluster-scope as the client is not getting initialized before and namespace is empty if not passed specifically. The client initialization happening in every cmd init was removed because it was getting initialized in all cmds but not required in cmd like bundle and hence bundle cmd failing with kube config error which was not required. This reverts that and add exception for bundle cmds based on annotation available on cmd. Now all cmd will have client initialization and cmd with annotation kubernetes=false will be exempted. Fix #1874
vinamra28
pushed a commit
that referenced
this issue
Feb 2, 2023
This will fix the issue for taskrun list command not working and throwing error regarding cluster-scope as the client is not getting initialized before and namespace is empty if not passed specifically. The client initialization happening in every cmd init was removed because it was getting initialized in all cmds but not required in cmd like bundle and hence bundle cmd failing with kube config error which was not required. This reverts that and add exception for bundle cmds based on annotation available on cmd. Now all cmd will have client initialization and cmd with annotation kubernetes=false will be exempted. Fix #1874
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Versions and Operating System
Kubernetes version:
Output of
kubectl version
:Tekton Pipeline version:
Output of
tkn version
orkubectl get pods -n tekton-pipelines -l app=tekton-pipelines-controller -o=jsonpath='{.items[0].metadata.labels.version}'
Operating System:
Expected Behavior
tkn taskrun list
command should work fine and show the list of taskrunsActual Behavior
tkn taskrun list
command throwing errorSteps to Reproduce the Problem
tkn tr ls
Additional Info
It is working fine with tkn 0.28.0
The text was updated successfully, but these errors were encountered: