Skip to content
Merged
4 changes: 2 additions & 2 deletions helm/install/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ description: Installer for PGO, the open source Postgres Operator from Crunchy D

type: application
# The version below should match the version on the PostgresCluster CRD
version: 5.6.0
appVersion: 5.6.0
version: 5.7.0
appVersion: 5.7.0

Large diffs are not rendered by default.

3,240 changes: 1,724 additions & 1,516 deletions helm/install/crds/postgres-operator.crunchydata.com_pgadmins.yaml

Large diffs are not rendered by default.

2,116 changes: 1,107 additions & 1,009 deletions helm/install/crds/postgres-operator.crunchydata.com_pgupgrades.yaml

Large diffs are not rendered by default.

29,120 changes: 14,977 additions & 14,143 deletions helm/install/crds/postgres-operator.crunchydata.com_postgresclusters.yaml

Large diffs are not rendered by default.

33 changes: 33 additions & 0 deletions helm/install/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,36 @@ imagePullSecrets:
value: {{ $object.image | quote }}
{{- end }}
{{- end }}


{{- define "install.defaultEnv" -}}
- name: CRUNCHY_DEBUG
value: {{ .Values.debug | ne false | quote }}
- name: PGO_NAMESPACE
valueFrom: { fieldRef: { apiVersion: v1, fieldPath: metadata.namespace } }
{{- if .Values.singleNamespace }}
- name: PGO_TARGET_NAMESPACE
valueFrom: { fieldRef: { apiVersion: v1, fieldPath: metadata.namespace } }
{{- end }}
{{- if .Values.workers }}
- name: PGO_WORKERS
value: {{ .Values.workers | quote }}
{{- end }}
{{- include "install.relatedImages" . }}
{{- if .Values.disable_check_for_upgrades }}
- name: CHECK_FOR_UPGRADES
value: "false"
{{- end }}
{{- if .Values.features }}
{{- $value := .Values.features }}
- name: PGO_FEATURE_GATES
{{- $out := "" -}}
{{- if eq (kindOf $value) "map" -}}
{{- range $key, $val := $value -}}
{{- $out = (print $out $key "=" $val ",") -}}
{{- end }}
{{- end }}
value: "{{ trimSuffix "," $out }}"
{{- end }}
{{- end }}{{/* define */}}

41 changes: 25 additions & 16 deletions helm/install/templates/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
{{- include "install.labels" . | nindent 4 }}
{{- include "install.clusterLabels" . | nindent 4 }}
spec:
replicas: 1
replicas: {{ .Values.replicas }}
strategy: { type: Recreate }
selector:
matchLabels:
Expand All @@ -24,22 +24,19 @@ spec:
- name: operator
image: {{ required ".Values.controllerImages.cluster is required" .Values.controllerImages.cluster | quote }}
env:
- name: CRUNCHY_DEBUG
value: {{ .Values.debug | ne false | quote }}
- name: PGO_NAMESPACE
valueFrom: { fieldRef: { apiVersion: v1, fieldPath: metadata.namespace } }
{{- if .Values.singleNamespace }}
- name: PGO_TARGET_NAMESPACE
valueFrom: { fieldRef: { apiVersion: v1, fieldPath: metadata.namespace } }
- name: PGO_INSTALLER
value: helm
- name: PGO_INSTALLER_ORIGIN
value: examples-repo
- name: PGO_CONTROLLER_LEASE_NAME
value: {{ .Values.pgoControllerLeaseName }}
{{- if .Values.envOverride }}
{{- toYaml .Values.envOverride | nindent 10 }}
{{- else -}}
{{- include "install.defaultEnv" . | nindent 10 }}
{{- end }}
{{- if .Values.workers }}
- name: PGO_WORKERS
value: {{ .Values.workers | quote }}
{{- end }}
{{- include "install.relatedImages" . | indent 8 }}
{{- if .Values.disable_check_for_upgrades }}
- name: CHECK_FOR_UPGRADES
value: "false"
{{- if .Values.extraEnv }}
{{- toYaml .Values.extraEnv | nindent 10 }}
{{- end }}
{{- if .Values.resources.controller }}
resources:
Expand All @@ -52,3 +49,15 @@ spec:
capabilities: { drop: [ALL] }
readOnlyRootFilesystem: true
runAsNonRoot: true
livenessProbe:
httpGet:
path: /readyz
port: 8081
initialDelaySeconds: 15
periodSeconds: 20
readinessProbe:
httpGet:
path: /healthz
port: 8081
initialDelaySeconds: 5
periodSeconds: 10
32 changes: 22 additions & 10 deletions helm/install/templates/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ rules:
- configmaps
- persistentvolumeclaims
- secrets
- serviceaccounts
- services
verbs:
- create
Expand Down Expand Up @@ -57,16 +58,6 @@ rules:
- list
- patch
- watch
- apiGroups:
- ''
resources:
- serviceaccounts
verbs:
- create
- get
- list
- patch
- watch
- apiGroups:
- apps
resources:
Expand All @@ -91,6 +82,15 @@ rules:
- list
- patch
- watch
- apiGroups:
- coordination.k8s.io
resources:
- leases
verbs:
- create
- get
- update
- watch
- apiGroups:
- policy
resources:
Expand Down Expand Up @@ -161,6 +161,18 @@ rules:
- roles
verbs:
- create
- delete
- get
- list
- patch
- watch
- apiGroups:
- snapshot.storage.k8s.io
resources:
- volumesnapshots
verbs:
- create
- delete
- get
- list
- patch
Expand Down
65 changes: 52 additions & 13 deletions helm/install/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,36 @@
# controllerImages are used to run the operator's controllers.
# The cluster image defined below runs the PostgresCluster and PGUpgrade controllers.
controllerImages:
cluster: registry.developers.crunchydata.com/crunchydata/postgres-operator:ubi8-5.6.0-0
cluster: registry.developers.crunchydata.com/crunchydata/postgres-operator:ubi8-5.7.0-0

# relatedImages are used when an image is omitted from PostgresCluster, PGAdmin or PGUpgrade specs.
relatedImages:
postgres_17:
image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres:ubi8-17.0-0
postgres_17_gis_3.4:
image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres-gis:ubi8-17.0-3.4-0
postgres_16:
image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres:ubi8-16.3-1
image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres:ubi8-16.4-2
postgres_16_gis_3.4:
image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres-gis:ubi8-16.3-3.4-1
image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres-gis:ubi8-16.4-3.4-2
postgres_16_gis_3.3:
image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres-gis:ubi8-16.3-3.3-1
image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres-gis:ubi8-16.4-3.3-2
postgres_15:
image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres:ubi8-15.7-1
image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres:ubi8-15.8-2
postgres_15_gis_3.3:
image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres-gis:ubi8-15.7-3.3-1
image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres-gis:ubi8-15.8-3.3-2
pgadmin:
image: registry.developers.crunchydata.com/crunchydata/crunchy-pgadmin4:ubi8-4.30-26
image: registry.developers.crunchydata.com/crunchydata/crunchy-pgadmin4:ubi8-4.30-31
pgbackrest:
image: registry.developers.crunchydata.com/crunchydata/crunchy-pgbackrest:ubi8-2.51-1
image: registry.developers.crunchydata.com/crunchydata/crunchy-pgbackrest:ubi8-2.53.1-0
pgbouncer:
image: registry.developers.crunchydata.com/crunchydata/crunchy-pgbouncer:ubi8-1.22-1
image: registry.developers.crunchydata.com/crunchydata/crunchy-pgbouncer:ubi8-1.23-0
pgexporter:
image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres-exporter:ubi8-0.15.0-7
image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres-exporter:ubi8-0.15.0-12
pgupgrade:
image: registry.developers.crunchydata.com/crunchydata/crunchy-upgrade:ubi8-5.6.0-0
image: registry.developers.crunchydata.com/crunchydata/crunchy-upgrade:ubi8-5.7.0-0
standalone_pgadmin:
image: registry.developers.crunchydata.com/crunchydata/crunchy-pgadmin4:ubi8-8.6-1
image: registry.developers.crunchydata.com/crunchydata/crunchy-pgadmin4:ubi8-8.12-0

# singleNamespace controls where PGO watches for PostgresClusters. When false,
# PGO watches for and responds to PostgresClusters in all namespaces. When true,
Expand All @@ -37,16 +41,51 @@ singleNamespace: false
# debug allows you to enable or disable the "debug" level of logging.
debug: true

# pgoControllerLeaseName sets the name of the Lease that holds the Leader Election
# Lock, thereby enabling High Availability for the Operator. If this is unset,
# Leader Election will be turned off. To utilize the Leader Election and make PGO
# highly available you will also need to increment the replica count.
pgoControllerLeaseName: cpk-leader-election-lease

# replicas sets the number of PGO instances.
# Warning: This should only be greater than 1 if pgoControllerLeaseName is set!
replicas: 1

# imagePullSecretNames is a list of secret names to use for pulling controller images.
# More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod
imagePullSecretNames: []

# Resource configuration of the PostgresCluster and PGUpgrade controllers.
resources:
controller: {}

# Define custom labels for PGO pods
# Note: Defining labels that overlap with any Crunchy Data label, for example,
# postgres-operator.crunchydata.com, will cause an error
# customPodLabels:
# example.com: custom-label

# Enable feature gates for PGO, by explicitly seting the value for the flags
# features:
# AutoGrowVolumes: true
# Feature2: false
# Feature3: somevalue

# Define extra environment variables for the chart, which will get added to the container's env
# extraEnv:
# - name: MY_VAR
# value: "myvalue"
# - name: MY_CONFIGMAP_VAR
# valueFrom:
# configMapKeyRef:
# name: s3-settings
# key: bucket
# - name: MY_SECRET_VAR
# valueFrom:
# secretKeyRef:
# name: s3-secret
# key: key

# Override environment variables entirely !!DANGEROUS!!
# envOverride:
# - name: PG_DEBUG
# value: "true"
2 changes: 1 addition & 1 deletion helm/postgres/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ postgresVersion: 16
# # keySecret is the S3 key secret. This is stored in a Secret.
# keySecret: ""
# # keyType can be configured to enable IAM integration via AssumeRole
# # For more info, see the documentation at https://access.crunchydata.com/documentation/postgres-operator/v5/tutorial/backups/#using-an-aws-integrated-identity-provider-and-role
# # For more info, see the documentation at https://access.crunchydata.com/documentation/postgres-operator/latest/tutorials/backups-disaster-recovery/backups#using-an-aws-integrated-identity-provider-and-role
# keyType: ""
# # encryptionPassphrase is an optional parameter to enable encrypted backups
# # with pgBackRest. This is encrypted by pgBackRest and does not use S3's
Expand Down
2 changes: 0 additions & 2 deletions kustomize/azure/postgres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ kind: PostgresCluster
metadata:
name: hippo-azure
spec:
image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres:ubi8-16.3-1
postgresVersion: 16
instances:
- dataVolumeClaimSpec:
Expand All @@ -14,7 +13,6 @@ spec:
storage: 1Gi
backups:
pgbackrest:
image: registry.developers.crunchydata.com/crunchydata/crunchy-pgbackrest:ubi8-2.51-1
configuration:
- secret:
name: pgo-azure-creds
Expand Down
2 changes: 0 additions & 2 deletions kustomize/certmanager/postgres/postgres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ kind: PostgresCluster
metadata:
name: hippo
spec:
image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres:ubi8-16.3-1
postgresVersion: 16
customReplicationTLSSecret:
name: hippo-repl-tls
Expand All @@ -19,7 +18,6 @@ spec:
storage: 1Gi
backups:
pgbackrest:
image: registry.developers.crunchydata.com/crunchydata/crunchy-pgbackrest:ubi8-2.51-1
repos:
- name: repo1
volume:
Expand Down
2 changes: 0 additions & 2 deletions kustomize/gcs/postgres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ kind: PostgresCluster
metadata:
name: hippo-gcs
spec:
image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres:ubi8-16.3-1
postgresVersion: 16
instances:
- dataVolumeClaimSpec:
Expand All @@ -14,7 +13,6 @@ spec:
storage: 1Gi
backups:
pgbackrest:
image: registry.developers.crunchydata.com/crunchydata/crunchy-pgbackrest:ubi8-2.51-1
configuration:
- secret:
name: pgo-gcs-creds
Expand Down
3 changes: 0 additions & 3 deletions kustomize/high-availability/ha-postgres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ kind: PostgresCluster
metadata:
name: hippo-ha
spec:
image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres:ubi8-16.3-1
postgresVersion: 16
instances:
- name: pgha1
Expand All @@ -26,7 +25,6 @@ spec:
postgres-operator.crunchydata.com/instance-set: pgha1
backups:
pgbackrest:
image: registry.developers.crunchydata.com/crunchydata/crunchy-pgbackrest:ubi8-2.51-1
repos:
- name: repo1
volume:
Expand All @@ -38,7 +36,6 @@ spec:
storage: 1Gi
proxy:
pgBouncer:
image: registry.developers.crunchydata.com/crunchydata/crunchy-pgbouncer:ubi8-1.22-1
replicas: 2
affinity:
podAntiAffinity:
Expand Down
47 changes: 47 additions & 0 deletions kustomize/install/components/images-by-tag/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
kind: Component
images:
- name: image-pgadmin
newName: registry.developers.crunchydata.com/crunchydata/crunchy-pgadmin4
newTag: ubi8-8.12-0
- name: image-pgadmin-v4
newName: registry.developers.crunchydata.com/crunchydata/crunchy-pgadmin4
newTag: ubi8-4.30-31
- name: image-pgbackrest
newName: registry.developers.crunchydata.com/crunchydata/crunchy-pgbackrest
newTag: ubi8-2.53.1-0
- name: image-pgbouncer
newName: registry.developers.crunchydata.com/crunchydata/crunchy-pgbouncer
newTag: ubi8-1.23-0
- name: image-postgres-exporter
newName: registry.developers.crunchydata.com/crunchydata/crunchy-postgres-exporter
newTag: ubi8-0.15.0-12
- name: image-postgres-operator-5.7
newName: registry.developers.crunchydata.com/crunchydata/postgres-operator
newTag: ubi8-5.7.0-0
- name: image-postgres-operator-5.6
newName: registry.developers.crunchydata.com/crunchydata/postgres-operator
newTag: ubi8-5.6.2-0
- name: image-crunchy-postgres-15
newName: registry.developers.crunchydata.com/crunchydata/crunchy-postgres
newTag: ubi8-15.8-2
- name: image-crunchy-postgres-16
newName: registry.developers.crunchydata.com/crunchydata/crunchy-postgres
newTag: ubi8-16.4-2
- name: image-crunchy-postgres-17
newName: registry.developers.crunchydata.com/crunchydata/crunchy-postgres
newTag: ubi8-17.0-0
- name: image-crunchy-upgrade
newName: registry.developers.crunchydata.com/crunchydata/crunchy-upgrade
newTag: ubi8-5.7.0-0
- name: image-crunchy-postgres-15-gis-3.3
newName: registry.developers.crunchydata.com/crunchydata/crunchy-postgres-gis
newTag: ubi8-15.8-3.3-2
- name: image-crunchy-postgres-16-gis-3.3
newName: registry.developers.crunchydata.com/crunchydata/crunchy-postgres-gis
newTag: ubi8-16.4-3.3-2
- name: image-crunchy-postgres-16-gis-3.4
newName: registry.developers.crunchydata.com/crunchydata/crunchy-postgres-gis
newTag: ubi8-16.4-3.4-2
- name: image-crunchy-postgres-17-gis-3.4
newName: registry.developers.crunchydata.com/crunchydata/crunchy-postgres-gis
newTag: ubi8-17.0-3.4-0
Loading