drone / charts

Helm charts for the Drone platform on Kubernetes
Other
168 stars 118 forks source link

dron runner SA lacks required credentials #60

Open kamilgregorczyk opened 2 years ago

kamilgregorczyk commented 2 years ago

after installing drone runners by

helm upgrade drone-runner drone/drone-runner-kube --install --create-namespace --namespace drone --values runner.yaml

with values:

replicaCount: 2
env:
  DRONE_RPC_SECRET: aaaa
  DRONE_NAMESPACE_DEFAULT: drone

I'm getting

default: secrets is forbidden: User "system:serviceaccount:drone:drone-runner-drone-runner-kube" cannot create resource "secrets" in API group "" in the namespace "drone"

when running a pipeline

jimsheldon commented 2 years ago

Thank you for reporting this, what version of the kube runner helm chart are you using? Thanks

kamilgregorczyk commented 2 years ago

I stopped using drone but it was the latest one from the day this bug was reported

loeffel-io commented 2 years ago

Same here (!)

current version

loeffel-io commented 2 years ago

workaround (like mentioned in the values: https://github.com/drone/charts/blob/master/charts/drone-runner-kube/values.yaml#L95):

resource "helm_release" "drone-runner-kube" {
  ...
  set {
    name  = "env.DRONE_NAMESPACE_DEFAULT"
    value = "drone"
  }

  set {
    name  = "rbac.buildNamespaces"
    value = "{drone}"
  }
}