GET /oapi/v1/buildconfigs
will report the error bellow:{
"kind": "Status",
"apiVersion": "v1",
"metadata": {},
"status": "Failure",
"message": "User \"system:anonymous\" cannot list all buildconfigs in the cluster",
"reason": "Forbidden",
"details": {
"kind": "buildconfigs"
},
"code": 403
}
so that what's the way to get the access token and how to specify it in the openshift REST API ? thanks.
....
I think this service account don't have the access right with some resources, but I have already grant the admin role to this sa as bellow:
oc policy add-role-to-user admin --serviceaccount=jenkins -n mytest
https://github.com/openshift/origin/issues/6807
No comments:
Post a Comment