fix: skip dbinit job when using external DB
When mysql.enabled=false (external DB), data already exists. Running migrations would be destructive, so dbinit now only runs when internal MySQL subchart is enabled. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
53d86cd48b
commit
57314032c3
@ -1,4 +1,4 @@
|
||||
{{- if .Values.dbInit.enabled }}
|
||||
{{- if and .Values.dbInit.enabled (eq (printf "%v" .Values.mysql.enabled) "true") }}
|
||||
apiVersion: batch/v1
|
||||
kind: Job
|
||||
metadata:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user