File tree Expand file tree Collapse file tree 5 files changed +76
-46
lines changed
Expand file tree Collapse file tree 5 files changed +76
-46
lines changed Original file line number Diff line number Diff line change 1+ apiVersion : rbac.authorization.k8s.io/v1
2+ kind : ClusterRole
3+ metadata :
4+ name : ext-postgres-operator
5+ rules :
6+ - apiGroups :
7+ - " "
8+ resources :
9+ - secrets
10+ verbs :
11+ - " *"
12+ - apiGroups :
13+ - apps
14+ resourceNames :
15+ - ext-postgres-operator
16+ resources :
17+ - deployments/finalizers
18+ verbs :
19+ - update
20+ - apiGroups :
21+ - db.movetokube.com
22+ resources :
23+ - " *"
24+ verbs :
25+ - " *"
26+ - apiGroups :
27+ - monitoring.coreos.com
28+ resources :
29+ - servicemonitors
30+ verbs :
31+ - " *"
Original file line number Diff line number Diff line change 1+ kind : ClusterRoleBinding
2+ apiVersion : rbac.authorization.k8s.io/v1
3+ metadata :
4+ name : ext-postgres-operator
5+ subjects :
6+ - kind : ServiceAccount
7+ name : ext-postgres-operator
8+ roleRef :
9+ kind : ClusterRole
10+ name : ext-postgres-operator
11+ apiGroup : rbac.authorization.k8s.io
Original file line number Diff line number Diff line change @@ -4,9 +4,11 @@ kind: Kustomization
44namespace : operators
55
66resources :
7- - crds/db.movetokube.com_postgres_crd.yaml
8- - crds/db.movetokube.com_postgresusers_crd.yaml
9- - operator.yaml
10- - role.yaml
11- - role_binding.yaml
12- - service_account.yaml
7+ - crds/db.movetokube.com_postgres_crd.yaml
8+ - crds/db.movetokube.com_postgresusers_crd.yaml
9+ - operator.yaml
10+ - cluster_role.yaml
11+ - cluster_role_binding.yaml
12+ - role.yaml
13+ - role_binding.yaml
14+ - service_account.yaml
Original file line number Diff line number Diff line change 11apiVersion : rbac.authorization.k8s.io/v1
2- kind : ClusterRole
2+ kind : Role
33metadata :
44 name : ext-postgres-operator
55rules :
6- - apiGroups :
7- - " "
8- resources :
9- - pods
10- - services
11- - endpoints
12- - persistentvolumeclaims
13- - events
14- - configmaps
15- - secrets
16- verbs :
17- - ' *'
18- - apiGroups :
19- - apps
20- resources :
21- - deployments
22- - daemonsets
23- - replicasets
24- - statefulsets
25- verbs :
26- - ' *'
27- - apiGroups :
28- - apps
29- resourceNames :
30- - ext-postgres-operator
31- resources :
32- - deployments/finalizers
33- verbs :
34- - update
35- - apiGroups :
36- - db.movetokube.com
37- resources :
38- - ' *'
39- verbs :
40- - ' *'
6+ - apiGroups :
7+ - " "
8+ resources :
9+ - configmaps
10+ - secrets
11+ - services
12+ verbs :
13+ - " *"
14+ - apiGroups :
15+ - " "
16+ resources :
17+ - pods
18+ verbs :
19+ - " get"
20+ - apiGroups :
21+ - " apps"
22+ resources :
23+ - replicasets
24+ - deployments
25+ verbs :
26+ - " get"
Original file line number Diff line number Diff line change 1- kind : ClusterRoleBinding
1+ kind : RoleBinding
22apiVersion : rbac.authorization.k8s.io/v1
33metadata :
44 name : ext-postgres-operator
55subjects :
6- - kind : ServiceAccount
7- name : ext-postgres-operator
6+ - kind : ServiceAccount
7+ name : ext-postgres-operator
88roleRef :
9- kind : ClusterRole
9+ kind : Role
1010 name : ext-postgres-operator
1111 apiGroup : rbac.authorization.k8s.io
You can’t perform that action at this time.
0 commit comments