mirror of
https://github.com/k8s-at-home/charts.git
synced 2025-01-31 13:59:04 +00:00
8c7886aca6
* 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>
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 }}
|