change null handling

This commit is contained in:
2024-06-22 18:22:25 -05:00
parent 5685190e43
commit 969357a664
2 changed files with 13 additions and 13 deletions

View File

@@ -1,6 +1,6 @@
apiVersion: v2
name: mysql-cluster
version: 0.2.2
version: 0.2.3
description: Chart for a mysql cluster
keywords:
- database

View File

@@ -22,30 +22,30 @@ spec:
tlsUseSelfSigned: true
secretName: {{ .Values.cluster.exisitingCredentialsSecret }}
podSpec:
{{- with .Values.cluster.podSpec }}
{{ toYaml . | nindent 4 }}
{{- if .Values.cluster.podSpec }}
{{ toYaml .Values.cluster.podSpec | nindent 4 }}
{{- end }}
podAnnotations:
{{- with .Values.cluster.podAnnotations }}
{{ toYaml . | nindent 4 }}
{{- if .Values.cluster.podAnnotations }}
{{ toYaml .Values.cluster.podAnnotations | nindent 4 }}
{{- end }}
podLabels:
{{- with .Values.cluster.podLabels }}
{{ toYaml . | nindent 4 }}
{{- if .Values.cluster.podLabels }}
{{ toYaml .Values.cluster.podLabels | nindent 4 }}
{{- end }}
router:
instances: {{ required "router.instances is required" .Values.cluster.router.instances }}
podSpec:
{{- with .Values.cluster.router.podSpec }}
{{- toYaml . | nindent 6 }}
{{- if .Values.cluster.router.podSpec }}
{{- toYaml .Values.cluster.router.podSpec | nindent 6 }}
{{- end }}
podAnnotations:
{{- with .Values.cluster.router.podAnnotations }}
{{- toYaml . | nindent 6 }}
{{- if .Values.cluster.router.podAnnotations }}
{{- toYaml .Values.cluster.router.podAnnotations | nindent 6 }}
{{- end }}
podLabels:
{{- with .Values.cluster.router.podLabels }}
{{- toYaml . | nindent 6 }}
{{- if .Values.cluster.router.podLabels }}
{{- toYaml .Values.cluster.router.podLabels | nindent 6 }}
{{- end }}
tlsSecretName: {{ include "cluster.name" . }}-router-tls
logs: