Skip to content

Commit 12ff4c8

Browse files
author
Jonathan S. Katz
committed
Add Kustomize based installer
1 parent 20a5bc3 commit 12ff4c8

15 files changed

+4151
-0
lines changed

kustomize/install/bases/crd/bases/postgres-operator.crunchydata.com_postgresclusters.yaml

Lines changed: 3795 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
resources:
2+
- bases/postgres-operator.crunchydata.com_postgresclusters.yaml
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
namespace: postgres-operator
2+
3+
commonLabels:
4+
postgres-operator.crunchydata.com/control-plane: postgres-operator
5+
6+
bases:
7+
- crd
8+
- rbac/cluster
9+
- manager
10+
11+
images:
12+
- name: postgres-operator
13+
newName: us.gcr.io/container-suite/postgres-operator
14+
newTag: ubi8-5.0.0-alpha.3-0
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
resources:
2+
- manager.yaml
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
apiVersion: apps/v1
3+
kind: Deployment
4+
metadata:
5+
name: postgres-operator
6+
spec:
7+
replicas: 1
8+
template:
9+
spec:
10+
containers:
11+
- name: operator
12+
image: postgres-operator
13+
env:
14+
- name: CRUNCHY_DEBUG
15+
value: "true"
16+
- name: PGO_DISABLE_PGCLUSTER
17+
value: "true"
18+
- name: CRUNCHY_POSTGRES_OPERATOR_NAMESPACE
19+
valueFrom:
20+
fieldRef:
21+
apiVersion: v1
22+
fieldPath: metadata.namespace
23+
serviceAccount: postgres-operator
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
resources:
2+
- service_account.yaml
3+
- role.yaml
4+
- role_binding.yaml
Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
---
2+
apiVersion: rbac.authorization.k8s.io/v1
3+
kind: ClusterRole
4+
metadata:
5+
name: postgres-operator
6+
rules:
7+
- apiGroups:
8+
- ''
9+
resources:
10+
- configmaps
11+
- persistentvolumeclaims
12+
- secrets
13+
- services
14+
verbs:
15+
- create
16+
- delete
17+
- get
18+
- list
19+
- patch
20+
- watch
21+
- apiGroups:
22+
- ''
23+
resources:
24+
- endpoints
25+
verbs:
26+
- create
27+
- deletecollection
28+
- get
29+
- list
30+
- patch
31+
- watch
32+
- apiGroups:
33+
- ''
34+
resources:
35+
- endpoints/restricted
36+
- pods/exec
37+
verbs:
38+
- create
39+
- apiGroups:
40+
- ''
41+
resources:
42+
- events
43+
verbs:
44+
- create
45+
- patch
46+
- apiGroups:
47+
- ''
48+
resources:
49+
- pods
50+
verbs:
51+
- delete
52+
- get
53+
- list
54+
- patch
55+
- watch
56+
- apiGroups:
57+
- ''
58+
resources:
59+
- serviceaccounts
60+
verbs:
61+
- create
62+
- get
63+
- list
64+
- patch
65+
- watch
66+
- apiGroups:
67+
- apps
68+
resources:
69+
- deployments
70+
- statefulsets
71+
verbs:
72+
- create
73+
- delete
74+
- get
75+
- list
76+
- patch
77+
- watch
78+
- apiGroups:
79+
- batch
80+
resources:
81+
- cronjobs
82+
verbs:
83+
- create
84+
- delete
85+
- get
86+
- list
87+
- patch
88+
- watch
89+
- apiGroups:
90+
- batch
91+
resources:
92+
- jobs
93+
verbs:
94+
- create
95+
- delete
96+
- get
97+
- list
98+
- patch
99+
- update
100+
- watch
101+
- apiGroups:
102+
- postgres-operator.crunchydata.com
103+
resources:
104+
- postgresclusters
105+
verbs:
106+
- get
107+
- list
108+
- patch
109+
- watch
110+
- apiGroups:
111+
- postgres-operator.crunchydata.com
112+
resources:
113+
- postgresclusters/finalizers
114+
verbs:
115+
- update
116+
- apiGroups:
117+
- postgres-operator.crunchydata.com
118+
resources:
119+
- postgresclusters/status
120+
verbs:
121+
- patch
122+
- apiGroups:
123+
- rbac.authorization.k8s.io
124+
resources:
125+
- rolebindings
126+
- roles
127+
verbs:
128+
- create
129+
- get
130+
- list
131+
- patch
132+
- watch
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
apiVersion: rbac.authorization.k8s.io/v1
3+
kind: ClusterRoleBinding
4+
metadata:
5+
name: postgres-operator
6+
roleRef:
7+
apiGroup: rbac.authorization.k8s.io
8+
kind: ClusterRole
9+
name: postgres-operator
10+
subjects:
11+
- kind: ServiceAccount
12+
name: postgres-operator
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
apiVersion: v1
3+
kind: ServiceAccount
4+
metadata:
5+
name: postgres-operator
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
resources:
2+
- service_account.yaml
3+
- role.yaml
4+
- role_binding.yaml

0 commit comments

Comments
 (0)