Update and add missing roles to plank initial config
A new instance, if created from scratch, won't start since these roles will be wrong or missing.
Shamelessly copied from k8s Prow config.
@@ -228,29 +228,52 @@ metadata:
kind: Role
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
+ namespace: default
name: "plank"
rules:
- apiGroups:
- - ""
+ - "prow.k8s.io"
resources:
- - pods
+ - prowjobs
verbs:
+ - get
- create
- - delete
- list
+ - update
+ - patch
+---
+kind: Role
+apiVersion: rbac.authorization.k8s.io/v1beta1
+metadata:
+ namespace: test-pods
+ name: "plank"
+rules:
- apiGroups:
- - "prow.k8s.io"
+ - ""
resources:
- - prowjobs
+ - pods
verbs:
- - get
- create
+ - delete
- list
- - update
---
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
+ namespace: default
+ name: "plank"
+roleRef:
+ apiGroup: rbac.authorization.k8s.io
+ kind: Role
+ name: "plank"
+subjects:
+- kind: ServiceAccount
+ name: "plank"
+---
+kind: RoleBinding
+apiVersion: rbac.authorization.k8s.io/v1beta1
+metadata:
+ namespace: test-pods
name: "plank"
roleRef:
apiGroup: rbac.authorization.k8s.io
