mirror of
https://github.com/k8s-at-home/charts.git
synced 2025-01-31 13:59:04 +00:00
19 lines
641 B
YAML
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 }}
|