Skip to content

Commit bbdbcf8

Browse files
committed
lint yaml
1 parent 4cb906b commit bbdbcf8

24 files changed

+17981
-15993
lines changed

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

+1,137-1,006
Large diffs are not rendered by default.

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

+16,323-14,511
Large diffs are not rendered by default.
+3-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
resources:
2-
- bases/postgres-operator.crunchydata.com_postgresclusters.yaml
3-
- bases/postgres-operator.crunchydata.com_pgupgrades.yaml
3+
- bases/postgres-operator.crunchydata.com_postgresclusters.yaml
4+
- bases/postgres-operator.crunchydata.com_pgupgrades.yaml
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
resources:
2-
- manager.yaml
3-
- manager-upgrade.yaml
3+
- manager.yaml
4+
- manager-upgrade.yaml

kustomize/install/manager/manager-upgrade.yaml

+16-16
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,20 @@ spec:
1717
postgres-operator.crunchydata.com/control-plane: postgres-operator-upgrade
1818
spec:
1919
containers:
20-
- name: operator
21-
image: postgres-operator-upgrade
22-
env:
23-
- name: PGO_NAMESPACE
24-
valueFrom:
25-
fieldRef:
26-
fieldPath: metadata.namespace
27-
- name: CRUNCHY_DEBUG
28-
value: "true"
29-
- name: RELATED_IMAGE_PGUPGRADE
30-
value: "registry.developers.crunchydata.com/crunchydata/crunchy-upgrade:ubi8-5.3.1-0"
31-
securityContext:
32-
allowPrivilegeEscalation: false
33-
capabilities: { drop: [ALL] }
34-
readOnlyRootFilesystem: true
35-
runAsNonRoot: true
20+
- name: operator
21+
image: postgres-operator-upgrade
22+
env:
23+
- name: PGO_NAMESPACE
24+
valueFrom:
25+
fieldRef:
26+
fieldPath: metadata.namespace
27+
- name: CRUNCHY_DEBUG
28+
value: "true"
29+
- name: RELATED_IMAGE_PGUPGRADE
30+
value: "registry.developers.crunchydata.com/crunchydata/crunchy-upgrade:ubi8-5.3.1-0"
31+
securityContext:
32+
allowPrivilegeEscalation: false
33+
capabilities: { drop: [ALL] }
34+
readOnlyRootFilesystem: true
35+
runAsNonRoot: true
3636
serviceAccountName: postgres-operator-upgrade

kustomize/install/manager/manager.yaml

+34-34
Original file line numberDiff line numberDiff line change
@@ -17,38 +17,38 @@ spec:
1717
postgres-operator.crunchydata.com/control-plane: postgres-operator
1818
spec:
1919
containers:
20-
- name: operator
21-
image: postgres-operator
22-
env:
23-
- name: PGO_NAMESPACE
24-
valueFrom:
25-
fieldRef:
26-
fieldPath: metadata.namespace
27-
- name: CRUNCHY_DEBUG
28-
value: "true"
29-
- name: RELATED_IMAGE_POSTGRES_14
30-
value: "registry.developers.crunchydata.com/crunchydata/crunchy-postgres:ubi8-14.7-0"
31-
- name: RELATED_IMAGE_POSTGRES_14_GIS_3.1
32-
value: "registry.developers.crunchydata.com/crunchydata/crunchy-postgres-gis:ubi8-14.7-3.1-0"
33-
- name: RELATED_IMAGE_POSTGRES_14_GIS_3.2
34-
value: "registry.developers.crunchydata.com/crunchydata/crunchy-postgres-gis:ubi8-14.7-3.2-0"
35-
- name: RELATED_IMAGE_POSTGRES_14_GIS_3.3
36-
value: "registry.developers.crunchydata.com/crunchydata/crunchy-postgres-gis:ubi8-14.7-3.3-0"
37-
- name: RELATED_IMAGE_POSTGRES_15
38-
value: "registry.developers.crunchydata.com/crunchydata/crunchy-postgres:ubi8-15.2-0"
39-
- name: RELATED_IMAGE_POSTGRES_15_GIS_3.3
40-
value: "registry.developers.crunchydata.com/crunchydata/crunchy-postgres-gis:ubi8-15.2-3.3-0"
41-
- name: RELATED_IMAGE_PGADMIN
42-
value: "registry.developers.crunchydata.com/crunchydata/crunchy-pgadmin4:ubi8-4.30-10"
43-
- name: RELATED_IMAGE_PGBACKREST
44-
value: "registry.developers.crunchydata.com/crunchydata/crunchy-pgbackrest:ubi8-2.41-4"
45-
- name: RELATED_IMAGE_PGBOUNCER
46-
value: "registry.developers.crunchydata.com/crunchydata/crunchy-pgbouncer:ubi8-1.18-0"
47-
- name: RELATED_IMAGE_PGEXPORTER
48-
value: "registry.developers.crunchydata.com/crunchydata/crunchy-postgres-exporter:ubi8-5.3.1-0"
49-
securityContext:
50-
allowPrivilegeEscalation: false
51-
capabilities: { drop: [ALL] }
52-
readOnlyRootFilesystem: true
53-
runAsNonRoot: true
20+
- name: operator
21+
image: postgres-operator
22+
env:
23+
- name: PGO_NAMESPACE
24+
valueFrom:
25+
fieldRef:
26+
fieldPath: metadata.namespace
27+
- name: CRUNCHY_DEBUG
28+
value: "true"
29+
- name: RELATED_IMAGE_POSTGRES_14
30+
value: "registry.developers.crunchydata.com/crunchydata/crunchy-postgres:ubi8-14.7-0"
31+
- name: RELATED_IMAGE_POSTGRES_14_GIS_3.1
32+
value: "registry.developers.crunchydata.com/crunchydata/crunchy-postgres-gis:ubi8-14.7-3.1-0"
33+
- name: RELATED_IMAGE_POSTGRES_14_GIS_3.2
34+
value: "registry.developers.crunchydata.com/crunchydata/crunchy-postgres-gis:ubi8-14.7-3.2-0"
35+
- name: RELATED_IMAGE_POSTGRES_14_GIS_3.3
36+
value: "registry.developers.crunchydata.com/crunchydata/crunchy-postgres-gis:ubi8-14.7-3.3-0"
37+
- name: RELATED_IMAGE_POSTGRES_15
38+
value: "registry.developers.crunchydata.com/crunchydata/crunchy-postgres:ubi8-15.2-0"
39+
- name: RELATED_IMAGE_POSTGRES_15_GIS_3.3
40+
value: "registry.developers.crunchydata.com/crunchydata/crunchy-postgres-gis:ubi8-15.2-3.3-0"
41+
- name: RELATED_IMAGE_PGADMIN
42+
value: "registry.developers.crunchydata.com/crunchydata/crunchy-pgadmin4:ubi8-4.30-10"
43+
- name: RELATED_IMAGE_PGBACKREST
44+
value: "registry.developers.crunchydata.com/crunchydata/crunchy-pgbackrest:ubi8-2.41-4"
45+
- name: RELATED_IMAGE_PGBOUNCER
46+
value: "registry.developers.crunchydata.com/crunchydata/crunchy-pgbouncer:ubi8-1.18-0"
47+
- name: RELATED_IMAGE_PGEXPORTER
48+
value: "registry.developers.crunchydata.com/crunchydata/crunchy-postgres-exporter:ubi8-5.3.1-0"
49+
securityContext:
50+
allowPrivilegeEscalation: false
51+
capabilities: { drop: [ALL] }
52+
readOnlyRootFilesystem: true
53+
runAsNonRoot: true
5454
serviceAccountName: pgo
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
---
12
resources:
2-
- namespace.yaml
3+
- namespace.yaml

kustomize/install/namespace/namespace.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
apiVersion: v1
23
kind: Namespace
34
metadata:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
namespace: postgres-operator
3+
4+
commonLabels:
5+
app.kubernetes.io/name: pgo
6+
# The version below should match the version on the PostgresCluster CRD
7+
app.kubernetes.io/version: 5.3.1
8+
9+
bases:
10+
- ../crd
11+
- ../rbac/cluster
12+
- ../manager
13+
14+
images:
15+
- name: postgres-operator
16+
newName: registry.developers.crunchydata.com/crunchydata/postgres-operator
17+
newTag: ubi8-5.3.1-0
18+
- name: postgres-operator-upgrade
19+
newName: registry.developers.crunchydata.com/crunchydata/postgres-operator-upgrade
20+
newTag: ubi8-5.3.1-0
21+
22+
patchesJson6902:
23+
- target: { group: apps, version: v1, kind: Deployment, name: pgo }
24+
path: selectors.yaml
25+
- target: { group: apps, version: v1, kind: Deployment, name: pgo-upgrade }
26+
path: selectors.yaml
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
# We add the app version as a "commonLabel" and change it with each release.
3+
# Remove it from selectors until we use "labels" of Kustomize v4.1.
4+
# See: https://kubectl.docs.kubernetes.io/references/kustomize/kustomization/commonlabels/
5+
# See: https://github.com/kubernetes-sigs/kustomize/releases/tag/kustomize%2Fv4.1.0
6+
- op: remove
7+
path: /spec/selector/matchLabels/app.kubernetes.io~1name
8+
- op: remove
9+
path: /spec/selector/matchLabels/app.kubernetes.io~1version
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
---
12
resources:
2-
- service_account.yaml
3-
- role.yaml
4-
- role_binding.yaml
5-
- service_account-upgrade.yaml
6-
- role-upgrade.yaml
7-
- role_binding-upgrade.yaml
3+
- service_account.yaml
4+
- role.yaml
5+
- role_binding.yaml
6+
- service_account-upgrade.yaml
7+
- role-upgrade.yaml
8+
- role_binding-upgrade.yaml

kustomize/install/rbac/cluster/role-upgrade.yaml

+62-62
Original file line numberDiff line numberDiff line change
@@ -7,65 +7,65 @@ metadata:
77
labels:
88
postgres-operator.crunchydata.com/control-plane: postgres-operator-upgrade
99
rules:
10-
- apiGroups:
11-
- ""
12-
resources:
13-
- endpoints
14-
verbs:
15-
- delete
16-
- get
17-
- list
18-
- watch
19-
- apiGroups:
20-
- apps
21-
resources:
22-
- statefulsets
23-
verbs:
24-
- list
25-
- watch
26-
- apiGroups:
27-
- batch
28-
resources:
29-
- jobs
30-
verbs:
31-
- create
32-
- delete
33-
- list
34-
- patch
35-
- watch
36-
- apiGroups:
37-
- postgres-operator.crunchydata.com
38-
resources:
39-
- pgupgrades
40-
verbs:
41-
- get
42-
- list
43-
- watch
44-
- apiGroups:
45-
- postgres-operator.crunchydata.com
46-
resources:
47-
- pgupgrades/finalizers
48-
verbs:
49-
- patch
50-
- update
51-
- apiGroups:
52-
- postgres-operator.crunchydata.com
53-
resources:
54-
- pgupgrades/status
55-
verbs:
56-
- get
57-
- patch
58-
- apiGroups:
59-
- postgres-operator.crunchydata.com
60-
resources:
61-
- postgresclusters
62-
verbs:
63-
- get
64-
- list
65-
- watch
66-
- apiGroups:
67-
- postgres-operator.crunchydata.com
68-
resources:
69-
- postgresclusters/status
70-
verbs:
71-
- patch
10+
- apiGroups:
11+
- ""
12+
resources:
13+
- endpoints
14+
verbs:
15+
- delete
16+
- get
17+
- list
18+
- watch
19+
- apiGroups:
20+
- apps
21+
resources:
22+
- statefulsets
23+
verbs:
24+
- list
25+
- watch
26+
- apiGroups:
27+
- batch
28+
resources:
29+
- jobs
30+
verbs:
31+
- create
32+
- delete
33+
- list
34+
- patch
35+
- watch
36+
- apiGroups:
37+
- postgres-operator.crunchydata.com
38+
resources:
39+
- pgupgrades
40+
verbs:
41+
- get
42+
- list
43+
- watch
44+
- apiGroups:
45+
- postgres-operator.crunchydata.com
46+
resources:
47+
- pgupgrades/finalizers
48+
verbs:
49+
- patch
50+
- update
51+
- apiGroups:
52+
- postgres-operator.crunchydata.com
53+
resources:
54+
- pgupgrades/status
55+
verbs:
56+
- get
57+
- patch
58+
- apiGroups:
59+
- postgres-operator.crunchydata.com
60+
resources:
61+
- postgresclusters
62+
verbs:
63+
- get
64+
- list
65+
- watch
66+
- apiGroups:
67+
- postgres-operator.crunchydata.com
68+
resources:
69+
- postgresclusters/status
70+
verbs:
71+
- patch

0 commit comments

Comments
 (0)