From d8b49d515ca730712a4243694c4a2a432ca9e2ae Mon Sep 17 00:00:00 2001 From: Liam Date: Mon, 23 Sep 2024 23:14:50 +0100 Subject: [PATCH] maybe this will fix it? --- kubernetes/apps/production/drone/runner/rbac.yaml | 6 +++--- .../apps/production/drone/runner/runner-deployment.yaml | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/kubernetes/apps/production/drone/runner/rbac.yaml b/kubernetes/apps/production/drone/runner/rbac.yaml index 83dee6c..e25aac7 100644 --- a/kubernetes/apps/production/drone/runner/rbac.yaml +++ b/kubernetes/apps/production/drone/runner/rbac.yaml @@ -2,7 +2,7 @@ kind: Role apiVersion: rbac.authorization.k8s.io/v1 metadata: name: drone - namespace: default + namespace: drone-ci rules: - apiGroups: - "" @@ -29,11 +29,11 @@ kind: RoleBinding apiVersion: rbac.authorization.k8s.io/v1 metadata: name: drone - namespace: default + namespace: drone-ci subjects: - kind: ServiceAccount name: default - namespace: default + namespace: drone-ci roleRef: kind: Role name: drone diff --git a/kubernetes/apps/production/drone/runner/runner-deployment.yaml b/kubernetes/apps/production/drone/runner/runner-deployment.yaml index 43d70b5..7505089 100644 --- a/kubernetes/apps/production/drone/runner/runner-deployment.yaml +++ b/kubernetes/apps/production/drone/runner/runner-deployment.yaml @@ -32,6 +32,8 @@ spec: value: drone.fascinated.cc - name: DRONE_RPC_PROTO value: https + - name: DRONE_NAMESPACE_DEFAULT + value: drone-ci - name: DRONE_RPC_SECRET valueFrom: secretKeyRef: