-
Notifications
You must be signed in to change notification settings - Fork 0
/
policy-configure-clusterlevel-rbac.yaml
59 lines (59 loc) · 1.76 KB
/
policy-configure-clusterlevel-rbac.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
apiVersion: policy.open-cluster-management.io/v1
kind: Policy
metadata:
name: policy-configure-clusterlevel-rbac
namespace: default
annotations:
policy.open-cluster-management.io/description: policy-configure-clusterlevel-rbac
creationTimestamp: 2023-09-15T19:17:11Z
generation: 2
managedFields:
resourceVersion: "68760428"
uid: c442a489-a5eb-424a-ad0d-bdde5e2a67f1
spec:
disabled: false
policy-templates:
- objectDefinition:
apiVersion: policy.open-cluster-management.io/v1
kind: ConfigurationPolicy
metadata:
name: policy-configure-clusterlevel
spec:
object-templates:
- complianceType: musthave
objectDefinition:
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: cluster-admin-0
roleRef:
name: cluster-admin
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
subjects:
- name: devadmin
apiGroup: rbac.authorization.k8s.io
kind: User
---
apiVersion: cluster.open-cluster-management.io/v1beta1
kind: Placement
metadata:
name: policy-configure-clusterlevel-rbac-placement
namespace: default
spec:
clusterSets:
- global
---
apiVersion: policy.open-cluster-management.io/v1
kind: PlacementBinding
metadata:
name: policy-configure-clusterlevel-rbac-placement-binding
namespace: default
placementRef:
name: policy-configure-clusterlevel-rbac-placement
apiGroup: cluster.open-cluster-management.io
kind: Placement
subjects:
- name: policy-configure-clusterlevel-rbac
apiGroup: policy.open-cluster-management.io
kind: Policy