#352  Onedev build which launches a pod is forbidden
Closed
Shamil opened 3 years ago

I'm using Skaffold with kaniko to perform an in-cluster build of a project. When trying to build the docker image using kaniko, I get the following error:

creating kaniko pod: pods is forbidden: User "system:serviceaccount:auto-discovered-shamil-personal-website-1-0:default" cannot create resource "pods" in API group "" in the namespace "default"

Can we get the namespace SA roles to include creating pods - in a specified namespace (which I can control, as I don't want to use the default namespace)

Shamil commented 3 years ago

Ah it looks like I can setup the Kubernetes executor instead of using the default auto-executor. Seems to work great :)

Robin Shen changed state to 'Closed' 3 years ago
Previous Value Current Value
Open
Closed
issue 1 of 1
Type
Bug
Priority
Normal
Assignee
Affected Versions
Not Found
Issue Votes (0)
Watchers (3)
Reference
onedev/server#352
Please wait...
Page is in error, reload to recover