Onedev build which launches a pod is forbidden (OD-352)
Shamil opened 5 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 5 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' 5 years ago
    Previous Value Current Value
    Open
    Closed
issue 1/1
Type
Bug
Priority
Normal
Assignee
Affected Versions
Not Found
Issue Votes (0)
Watchers (3)
Reference
OD-352
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover