Skip to content

Commit

Permalink
[postgrescluster] add README and docs links
Browse files Browse the repository at this point in the history
  • Loading branch information
jshimko committed Sep 26, 2024
1 parent 61d4f02 commit 268c6dc
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 7 deletions.
6 changes: 3 additions & 3 deletions charts/postgrescluster/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: postgres
name: postgrescluster
description: A Helm chart for deploying a PostgresCluster instance using Crunchy Postgres Operator. https://access.crunchydata.com/documentation/postgres-operator/latest
type: application
# The version below should match the version on the PostgresCluster CRD
version: 5.6.0
appVersion: 5.6.0
version: 5.6.1
appVersion: 5.6.1
21 changes: 21 additions & 0 deletions charts/postgrescluster/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# PostgresCluster

This chart is used to deploy a `PostgresCluster` instance using [Crunchy Postgres Operator](https://access.crunchydata.com/documentation/postgres-operator/latest).

This chart is just a copy of their example chart. It is only copied here so that it is available in our Helm repository (the official chart is not published anywhere and requires a git clone).

Docs:

<https://access.crunchydata.com/documentation/postgres-operator/latest/>

Examples Repo:

<https://github.com/CrunchyData/postgres-operator-examples>

Original source of this chart:

<https://github.com/CrunchyData/postgres-operator-examples/tree/main/helm/postgres>

Full `PostgresCluster` CRD reference (all of these configs are available in the chart values):

<https://access.crunchydata.com/documentation/postgres-operator/latest/references/crd/5.6.x/postgrescluster>
7 changes: 5 additions & 2 deletions charts/postgrescluster/templates/postgres.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
# CRD reference:
# https://access.crunchydata.com/documentation/postgres-operator/latest/references/crd/5.6.x/postgrescluster
apiVersion: postgres-operator.crunchydata.com/v1beta1
kind: PostgresCluster
metadata:
name: {{ default .Release.Name .Values.name }}
{{ with .Values.annotations }}
annotations:
# https://access.crunchydata.com/documentation/postgres-operator/latest/tutorials/basic-setup/user-management#automatically-creating-per-user-schemas
postgres-operator.crunchydata.com/autoCreateUserSchema: "true"
{{ toYaml . | indent 4 }}
{{ end }}
spec:
postgresVersion: {{ required "You must set the version of Postgres to deploy." .Values.postgresVersion }}
{{- if .Values.postGISVersion }}
Expand Down
16 changes: 14 additions & 2 deletions charts/postgrescluster/values.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
# For a full explanation of how to set up the custom resource, please refer to
# the documentation:
# https://access.crunchydata.com/documentation/postgres-operator/v5/
# https://access.crunchydata.com/documentation/postgres-operator/latest/

###########
# General #
Expand All @@ -11,6 +11,10 @@
# release.
# name: hippo

# PostgresCluster annotations
# annotations:
# postgres-operator.crunchydata.com/autoCreateUserSchema: "true"

# postgresVersion sets the version to deploy. This version number needs to be
# available as one of the "RELATED_IMAGE_POSTGRES_..." images as part of the PGO
# installation if you want to deploy the image without setting the "postgres"
Expand Down Expand Up @@ -98,7 +102,9 @@ postgresVersion: 16
# Advanced Postgres Settings #
##############################

# instances allows you to define one or more Postgres instance sets. By default,
# Instances
# https://access.crunchydata.com/documentation/postgres-operator/latest/references/crd/5.6.x/postgrescluster#postgresclusterspecinstancesindex
# The instances config allows you to define one or more Postgres instance sets. By default,
# PGO will only deploy a single instance. Each instance set has similar
# characteristics to the other instances in the set, e.g. storage size, resource
# etc. You can have multiple replicas within an instance set.
Expand Down Expand Up @@ -130,13 +136,16 @@ postgresVersion: 16
# postgresql:
# parameters:
# synchronous_commit: "on"
# https://access.crunchydata.com/documentation/postgres-operator/latest/references/crd/5.6.x/postgrescluster#postgresclusterspecpatroni
# patroni: {}

# users sets any custom Postgres users and databases that they have access to
# as well as any permissions associated with the user account.
# https://access.crunchydata.com/documentation/postgres-operator/latest/references/crd/5.6.x/postgrescluster#postgresclusterspecusersindex
# users: {}

# dataSource specifies a data source for bootstrapping a Postgres cluster.
# https://access.crunchydata.com/documentation/postgres-operator/latest/references/crd/5.6.x/postgrescluster#postgresclusterspecdatasource
# dataSource: {}

# customTLSSecret references a Secret that contains the relevant information for
Expand Down Expand Up @@ -259,6 +268,7 @@ postgresVersion: 16

# pgBackRestConfig allows for the configuration of every pgBackRest option
# except for "image", which is set by "pgBackRest".
# https://access.crunchydata.com/documentation/postgres-operator/latest/references/crd/5.6.x/postgrescluster#postgresclusterspecbackupspgbackrest
# pgBackRestConfig: {}

################################
Expand All @@ -267,6 +277,7 @@ postgresVersion: 16

# pgBouncerConfig sets all of the pgBouncer portions of the spec except for
# image. To set image, you need to set the "pgBouncer" setting.
# https://access.crunchydata.com/documentation/postgres-operator/latest/references/crd/5.6.x/postgrescluster#postgresclusterspecproxypgbouncer
# pgBouncerConfig: {}

#######################
Expand All @@ -276,6 +287,7 @@ postgresVersion: 16
# monitoringConfig sets all of the monitoring portions of the spec except for the
# image. To set the image, which also enables monitoring, you need to set the
# "monitoring" setting.
# https://access.crunchydata.com/documentation/postgres-operator/latest/references/crd/5.6.x/postgrescluster#postgresclusterspecmonitoring
# monitoringConfig: {}

#######################
Expand Down

0 comments on commit 268c6dc

Please sign in to comment.