-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathroles.yaml
38 lines (38 loc) · 1015 Bytes
/
roles.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
kind: Template
apiVersion: v1
metadata:
name: hibernator-roles
objects:
- apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: hibernation-curator
rules:
- apiGroups: ["hive.openshift.io"]
resources: ["clusterdeployments"]
verbs: ["get", "list", "patch"]
- apiGroups: ["events.k8s.io"]
resources: ["events"]
verbs: ["create", "get", "update"]
- apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: hibernation-curator
namespace: ${NAMESPACE}
subjects:
- kind: ServiceAccount
name: hibernator
namespace: ${NAMESPACE}
roleRef:
kind: ClusterRole
name: hibernation-curator
apiGroup: rbac.authorization.k8s.io
- apiVersion: v1
kind: ServiceAccount
metadata:
name: hibernator
namespace: ${NAMESPACE}
parameters:
- name: NAMESPACE
description: The namespace where the hibernate CronJobs were installed
required: true