Skip to content

Commit 142a13f

Browse files
committed
Include kustomization changes (#102)
1 parent f4c2a48 commit 142a13f

File tree

5 files changed

+76
-46
lines changed

5 files changed

+76
-46
lines changed

deploy/cluster_role.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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+
- "*"

deploy/cluster_role_binding.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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

deploy/kustomization.yaml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ kind: Kustomization
44
namespace: operators
55

66
resources:
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

deploy/role.yaml

Lines changed: 22 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,26 @@
11
apiVersion: rbac.authorization.k8s.io/v1
2-
kind: ClusterRole
2+
kind: Role
33
metadata:
44
name: ext-postgres-operator
55
rules:
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"

deploy/role_binding.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
kind: ClusterRoleBinding
1+
kind: RoleBinding
22
apiVersion: rbac.authorization.k8s.io/v1
33
metadata:
44
name: ext-postgres-operator
55
subjects:
6-
- kind: ServiceAccount
7-
name: ext-postgres-operator
6+
- kind: ServiceAccount
7+
name: ext-postgres-operator
88
roleRef:
9-
kind: ClusterRole
9+
kind: Role
1010
name: ext-postgres-operator
1111
apiGroup: rbac.authorization.k8s.io

0 commit comments

Comments
 (0)