feat: new style combined manifest and chart config (busynix)

This commit is contained in:
Jonas Juselius
2024-01-31 15:02:09 +01:00
parent 783c6bf1a5
commit 6c8ce720be
22 changed files with 537 additions and 28 deletions
+26
View File
@@ -0,0 +1,26 @@
{{- if .Values.cluster.enabled -}}
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: {{ include "Busynix.fullname" . }}
annotations:
linkerd.io/inject: disabled
labels:
{{- include "Busynix.labels" . | nindent 4 }}
spec:
instances: {{ .Values.cluster.instances | default "2" }}
# Example of rolling update strategy:
# - unsupervised: automated update of the primary once all
# replicas have been upgraded (default)
# - supervised: requires manual supervision to perform
# the switchover of the primary
primaryUpdateStrategy: unsupervised
backup:
retentionPolicy: {{ .Values.cluster.backupRetention | default "60d" }}
storage:
size: {{ .Values.cluster.size | default "5Gi" }}
{{- end }}