Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mariadb/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: mariadb
description: A Helm chart for MariaDB
type: application
version: 0.1.27
version: 0.1.28
appVersion: "10.6"
7 changes: 5 additions & 2 deletions mariadb/templates/mariadb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,15 @@ spec:
replPasswordSecretKeyRef:
name: {{ include "mariadb.fullname" . }}-user-password
key: password-repl
{{- if .Values.secondary.replica.recovery.enabled }}
{{- if or .Values.secondary.replica.recovery.enabled .Values.secondary.replica.recovery.reconnectOnAuthError }}
recovery:
enabled: true
enabled: {{ .Values.secondary.replica.recovery.enabled }}
{{- if .Values.secondary.replica.recovery.errorDurationThreshold }}
errorDurationThreshold: {{ .Values.secondary.replica.recovery.errorDurationThreshold }}
{{- end }}
{{- if .Values.secondary.replica.recovery.reconnectOnAuthError }}
reconnectOnAuthError: true
{{- end }}
{{- end }}
{{- if and .Values.backup.enabled (eq .Values.backup.type "physical") }}
bootstrapFrom:
Expand Down
5 changes: 5 additions & 0 deletions mariadb/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@ secondary:
recovery:
enabled: false
errorDurationThreshold: 5m
# Re-issue CHANGE MASTER when a replica's IO thread is stuck on a repl auth
# error (1045) past errorDurationThreshold, re-syncing the repl password from
# the secret. Lightweight (no backup rebuild); only acts on an already-broken
# replica. Requires the operator's reconnectOnAuthError build (ubc fork).
reconnectOnAuthError: true

backup:
enabled: false
Expand Down
Loading