Skip to content

Commit d6f500e

Browse files
ltellesfljmckulkAnthony Landrethjaitaiwandsessler7
authored
Pull latest crunchy updates (#9)
* Updates for August Release * Bump monitoring versions * feat: Add customised env var and feature flags This change adds 3 new features: - The ability to enable feature flags with the .Values.features key - The ability to add extra environment variables to the container env - The ability to completely override env variables (not recommended) Closes CrunchyData#262 * Update pgAdmin example - add user management to pgAdmin example - Deploy with `internal` only auth by default * Define use in postgres example * Remove Images from examples - Images are defined in the operator deployment as RELATED_IMAGES. We don't need to define them in two places. - Leave a commented image field in the postgres example * Changes to operator installers for 5.7 release. * Remove old singlenamespace installer artifacts. * Fix broken hyperlinks. * patching Kustomize monitoring installer * 5.7.1 release updates (CrunchyData#289) 5.7.1 release updates * 5.7.2 release * Update copyright to 2025 (CrunchyData#292) * v5.7.3 release * Release 5.7.4 PGO-2238 * update p * Adds missing gis image from last release * Updates to v5.8.0 * Update Postgres Helm Chart to include instrumentation (CrunchyData#299) * Update postgres.yaml * Update values.yaml * Update postgres.yaml * Apply suggestions from code review Co-authored-by: Drew Sessler <36803518+dsessler7@users.noreply.github.com> --------- Co-authored-by: Drew Sessler <36803518+dsessler7@users.noreply.github.com> * Updates monitoring example for v5.8 * Update for 2025-04 minor release (CrunchyData#302) * Added Helm support for Affinity and Tolerations (CrunchyData#304) * Added support for tolerations / affinity to Helm chart with consistent flow control * update for release * fix whitespace * Update Examples for the Latest Version of Keycloak The Keycloak example now works with the latest version of Keycloak. This includes using the new env vars and settings that are now available in the latest version of Keycloak. The PostgresCluster's created for the Keycloak examples (which includes any PostgresCluster's created for use with Keycloak in the Crunchy Postgres for Kubernetes documentation) have also been updated to set the "autoCreateUserSchema" annotation to "true". Without this setting, Keycloak will crash on startup when attempting to use the public schema. --------- Co-authored-by: jmckulk <joseph.mckulka@crunchydata.com> Co-authored-by: Joseph Mckulka <16840147+jmckulk@users.noreply.github.com> Co-authored-by: Anthony Landreth <tony.landreth@crunchydata.com> Co-authored-by: Daniel Holmes <daniel.holmes@djcentric.com> Co-authored-by: Drew Sessler <drew.sessler@crunchydata.com> Co-authored-by: crunchy-containers-bot <sysops+containersbot@crunchydata.com> Co-authored-by: Tony Landreth <56887169+tony-landreth@users.noreply.github.com> Co-authored-by: ValClarkson <valerie.clarkson@crunchydata.com> Co-authored-by: Benjamin Blattberg <ben.blattberg@crunchydata.com> Co-authored-by: Drew Sessler <36803518+dsessler7@users.noreply.github.com> Co-authored-by: Dan T <96055340+Dan0x54@users.noreply.github.com> Co-authored-by: andrewlecuyer <andrew.lecuyer@crunchydata.com>
1 parent 5352da0 commit d6f500e

File tree

67 files changed

+42339
-35410
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+42339
-35410
lines changed

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@
175175

176176
END OF TERMS AND CONDITIONS
177177

178-
Copyright 2017 - 2024 Crunchy Data Solutions, Inc.
178+
Copyright 2017 - 2025 Crunchy Data Solutions, Inc.
179179

180180
Licensed under the Apache License, Version 2.0 (the "License");
181181
you may not use this file except in compliance with the License.

helm/install/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ description: Installer for PGO, the open source Postgres Operator from Crunchy D
44

55
type: application
66
# The version below should match the version on the PostgresCluster CRD
7-
version: 5.6.0
8-
appVersion: 5.6.0
7+
version: 5.8.2
8+
appVersion: 5.8.2

helm/install/LICENSE.txt

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
Crunchy Data
2+
3+
Crunchy PostgreSQL for Kubernetes Terms of Use
4+
5+
Crunchy Data Solutions, Inc. (Crunchy Data) has integrated the Crunchy Data
6+
distribution of PostgreSQL and the PostgreSQL Operator as the commercial product,
7+
Crunchy PostgreSQL for Kubernetes. This Crunchy PostgreSQL for Kubernetes Terms
8+
of Use establishes a framework that will enable Crunchy Data to provide Crunchy
9+
Data packaged open source software, made available as a series of containers (the
10+
"Crunchy Data Software"), to users, subject to applicable terms and conditions.
11+
12+
By using or accessing the Crunchy Data Software, the using or accessing party
13+
agrees to applicable terms and conditions and agrees that the applicable terms as
14+
set forth in this Crunchy PostgreSQL for Kubernetes Terms of Use will govern the
15+
use of the Crunchy Data Software unless otherwise agreed to in writing by Crunchy
16+
Data and the using or accessing party. If at any time the applicable terms are
17+
no longer acceptable to the using or accessing party, the using or accessing
18+
party should immediately cease all use of the Crunchy Data Software.
19+
20+
For users with a valid Crunchy Data subscription agreement, unless otherwise
21+
agreed to in writing, the use of Crunchy PostgreSQL for Kubernetes, including the
22+
use of each of the containers included therein, by users with a valid Crunchy
23+
Data subscription agreement, for both development and production purposes, is
24+
subject to the Crunchy Data Terms of Use (the "Crunchy Data Terms of Use")
25+
located at:
26+
27+
* https://access.crunchydata.com/EULA
28+
29+
Crunchy PostgreSQL for Kubernetes constitutes Crunchy Data Software under the
30+
Crunchy Data Terms of Use and its use is not intended to prohibit the rights
31+
under any open source license.
32+
33+
For users without a valid Crunchy Data subscription agreement, the Crunchy Data
34+
Software is provided for use under the Crunchy Data Developer Program. Unless
35+
otherwise agreed to in writing, the use of Crunchy PostgreSQL for Kubernetes,
36+
including the use of each of the containers included therein, is subject to the
37+
Crunchy Data Developer Program Terms of Use (the "Developer Terms of Use"):
38+
39+
* https://www.crunchydata.com/developers/terms-of-use
40+
41+
Crunchy PostgreSQL for Kubernetes constitutes Crunchy Developer Software under
42+
the Crunchy Data Developer Program Terms of Use and its use is not intended to
43+
prohibit the rights under any open source license.

helm/install/crds/postgres-operator.crunchydata.com_crunchybridgeclusters.yaml

Lines changed: 264 additions & 278 deletions
Large diffs are not rendered by default.

helm/install/crds/postgres-operator.crunchydata.com_pgadmins.yaml

Lines changed: 2352 additions & 1515 deletions
Large diffs are not rendered by default.

helm/install/crds/postgres-operator.crunchydata.com_pgupgrades.yaml

Lines changed: 1133 additions & 1011 deletions
Large diffs are not rendered by default.

helm/install/crds/postgres-operator.crunchydata.com_postgresclusters.yaml

Lines changed: 16705 additions & 14676 deletions
Large diffs are not rendered by default.

helm/install/templates/_helpers.tpl

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,3 +98,36 @@ imagePullSecrets:
9898
value: {{ $object.image | quote }}
9999
{{- end }}
100100
{{- end }}
101+
102+
103+
{{- define "install.defaultEnv" -}}
104+
- name: CRUNCHY_DEBUG
105+
value: {{ .Values.debug | ne false | quote }}
106+
- name: PGO_NAMESPACE
107+
valueFrom: { fieldRef: { apiVersion: v1, fieldPath: metadata.namespace } }
108+
{{- if .Values.singleNamespace }}
109+
- name: PGO_TARGET_NAMESPACE
110+
valueFrom: { fieldRef: { apiVersion: v1, fieldPath: metadata.namespace } }
111+
{{- end }}
112+
{{- if .Values.workers }}
113+
- name: PGO_WORKERS
114+
value: {{ .Values.workers | quote }}
115+
{{- end }}
116+
{{- include "install.relatedImages" . }}
117+
{{- if .Values.disable_check_for_upgrades }}
118+
- name: CHECK_FOR_UPGRADES
119+
value: "false"
120+
{{- end }}
121+
{{- if .Values.features }}
122+
{{- $value := .Values.features }}
123+
- name: PGO_FEATURE_GATES
124+
{{- $out := "" -}}
125+
{{- if eq (kindOf $value) "map" -}}
126+
{{- range $key, $val := $value -}}
127+
{{- $out = (print $out $key "=" $val ",") -}}
128+
{{- end }}
129+
{{- end }}
130+
value: "{{ trimSuffix "," $out }}"
131+
{{- end }}
132+
{{- end }}{{/* define */}}
133+

helm/install/templates/manager.yaml

Lines changed: 36 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ metadata:
77
{{- include "install.labels" . | nindent 4 }}
88
{{- include "install.clusterLabels" . | nindent 4 }}
99
spec:
10-
replicas: 1
10+
replicas: {{ .Values.replicas }}
1111
strategy: { type: Recreate }
1212
selector:
1313
matchLabels:
@@ -24,22 +24,19 @@ spec:
2424
- name: operator
2525
image: {{ required ".Values.controllerImages.cluster is required" .Values.controllerImages.cluster | quote }}
2626
env:
27-
- name: CRUNCHY_DEBUG
28-
value: {{ .Values.debug | ne false | quote }}
29-
- name: PGO_NAMESPACE
30-
valueFrom: { fieldRef: { apiVersion: v1, fieldPath: metadata.namespace } }
31-
{{- if .Values.singleNamespace }}
32-
- name: PGO_TARGET_NAMESPACE
33-
valueFrom: { fieldRef: { apiVersion: v1, fieldPath: metadata.namespace } }
27+
- name: PGO_INSTALLER
28+
value: helm
29+
- name: PGO_INSTALLER_ORIGIN
30+
value: examples-repo
31+
- name: PGO_CONTROLLER_LEASE_NAME
32+
value: {{ .Values.pgoControllerLeaseName }}
33+
{{- if .Values.envOverride }}
34+
{{- toYaml .Values.envOverride | nindent 10 }}
35+
{{- else -}}
36+
{{- include "install.defaultEnv" . | nindent 10 }}
3437
{{- end }}
35-
{{- if .Values.workers }}
36-
- name: PGO_WORKERS
37-
value: {{ .Values.workers | quote }}
38-
{{- end }}
39-
{{- include "install.relatedImages" . | indent 8 }}
40-
{{- if .Values.disable_check_for_upgrades }}
41-
- name: CHECK_FOR_UPGRADES
42-
value: "false"
38+
{{- if .Values.extraEnv }}
39+
{{- toYaml .Values.extraEnv | nindent 10 }}
4340
{{- end }}
4441
{{- if .Values.resources.controller }}
4542
resources:
@@ -52,3 +49,26 @@ spec:
5249
capabilities: { drop: [ALL] }
5350
readOnlyRootFilesystem: true
5451
runAsNonRoot: true
52+
ports:
53+
- containerPort: 8443
54+
name: metrics
55+
livenessProbe:
56+
httpGet:
57+
path: /readyz
58+
port: 8081
59+
initialDelaySeconds: 15
60+
periodSeconds: 20
61+
readinessProbe:
62+
httpGet:
63+
path: /healthz
64+
port: 8081
65+
initialDelaySeconds: 5
66+
periodSeconds: 10
67+
{{- if .Values.tolerations }}
68+
tolerations:
69+
{{- toYaml .Values.tolerations | nindent 8 }}
70+
{{- end }}
71+
{{- if .Values.affinity }}
72+
affinity:
73+
{{- toYaml .Values.affinity | nindent 8 }}
74+
{{- end }}

helm/install/templates/role.yaml

Lines changed: 34 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ rules:
1313
- configmaps
1414
- persistentvolumeclaims
1515
- secrets
16+
- serviceaccounts
1617
- services
1718
verbs:
1819
- create
@@ -57,16 +58,6 @@ rules:
5758
- list
5859
- patch
5960
- watch
60-
- apiGroups:
61-
- ''
62-
resources:
63-
- serviceaccounts
64-
verbs:
65-
- create
66-
- get
67-
- list
68-
- patch
69-
- watch
7061
- apiGroups:
7162
- apps
7263
resources:
@@ -79,6 +70,18 @@ rules:
7970
- list
8071
- patch
8172
- watch
73+
- apiGroups:
74+
- authentication.k8s.io
75+
resources:
76+
- tokenreviews
77+
verbs:
78+
- create
79+
- apiGroups:
80+
- authorization.k8s.io
81+
resources:
82+
- subjectaccessreviews
83+
verbs:
84+
- create
8285
- apiGroups:
8386
- batch
8487
resources:
@@ -91,6 +94,15 @@ rules:
9194
- list
9295
- patch
9396
- watch
97+
- apiGroups:
98+
- coordination.k8s.io
99+
resources:
100+
- leases
101+
verbs:
102+
- create
103+
- get
104+
- update
105+
- watch
94106
- apiGroups:
95107
- policy
96108
resources:
@@ -161,6 +173,18 @@ rules:
161173
- roles
162174
verbs:
163175
- create
176+
- delete
177+
- get
178+
- list
179+
- patch
180+
- watch
181+
- apiGroups:
182+
- snapshot.storage.k8s.io
183+
resources:
184+
- volumesnapshots
185+
verbs:
186+
- create
187+
- delete
164188
- get
165189
- list
166190
- patch

0 commit comments

Comments
 (0)