Compare commits

...

2 Commits

2 changed files with 23 additions and 4 deletions

View File

@ -19,10 +19,6 @@ spec:
env:
- name: WOODPECKER_SERVER
value: "woodpecker-server:9000"
- name: WOODPECKER_HEALTHCHECK
value: "false"
- name: WOODPECKER_GRPC_RECONNECT
value: "true"
- name: WOODPECKER_BACKEND_K8S_POD_ANNOTATIONS_ALLOW_FROM_STEP
value: "true"
- name: WOODPECKER_BACKEND_K8S_STORAGE_CLASS

View File

@ -0,0 +1,23 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: woodpecker-ci-role
namespace: woodpecker
rules:
- apiGroups: [""]
resources: ["pods", "pods/log", "pods/exec", "pods/status", "persistentvolumeclaims", "secrets"]
verbs: ["get", "list", "watch", "create", "delete", "patch", "update"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: woodpecker-ci-binding
namespace: woodpecker
subjects:
- kind: ServiceAccount
name: default
namespace: woodpecker
roleRef:
kind: Role
name: woodpecker-ci-role
apiGroup: rbac.authorization.k8s.io