charts/charts/stable/zalando-postgres-cluster/templates/db.yaml
Vegetto 8c7886aca6
[postgres-cluster] New chart to create Postgres clusters with local storage (#739)
* first release of postgres-cluster

* increase path version

* Fix .Values access

* Use common.labels.selectorLabels

* 1.0.4 - Use .Value and not $.Value

* 1.0.5 - fix schedule

* 1.0.6

* 1.0.6 - Remove unneded service

* 1.0.8

* 1.0.9 - fix .Value.replicaNodes

* 1.0.10

* move chart

* WIP

* Ready for test

* update readme

* fix secret name

* Merge branch 'postgres-cluster'

* add labels

* gen secret

* fix labels

* keep DB content

* Ready to submit

* rename chart

Co-authored-by: angelnu <git@angelnucom>
Co-authored-by: ᗪєνιη ᗷυнʟ <onedr0p@users.noreply.github.com>
2021-04-01 07:24:16 -04:00

19 lines
641 B
YAML

{{- if not .Values.postgresql.volume.storageClass -}}
{{- $_ := set .Values.postgresql.volume "storageClass" (include "zalando-postgres-cluster.storageClass" .) }}
{{- end}}
{{- if not .Values.postgresql.teamId -}}
{{- $_ := set .Values.postgresql "teamId" (include "common.names.fullname" .) }}
{{- end}}
{{- $_ := set .Values.postgresql "numberOfInstances" (len $.Values.persistentVolumes.replicaNodes) }}
apiVersion: "acid.zalan.do/v1"
kind: postgresql
metadata:
name: {{ include "zalando-postgres-cluster.db" . }}
labels:
{{- include "common.labels" . | nindent 4 }}
spec:
{{- .Values.postgresql | toYaml | nindent 2 }}