diff --git a/xxl-job-admin/templates/deployment.yaml b/xxl-job-admin/templates/deployment.yaml index c57896b..ca1e559 100644 --- a/xxl-job-admin/templates/deployment.yaml +++ b/xxl-job-admin/templates/deployment.yaml @@ -44,7 +44,7 @@ spec: - containerPort: 8080 env: - name: PARAMS - value: {{ .Values.PARAMS_VALUE | "--spring.datasource.url=jdbc:mysql://mysql:3306/xxl_job?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&serverTimezone=Asia/Shanghai --spring.datasource.username=root --spring.datasource.password=mysql" }} + value: {{ .Values.PARAMS_VALUE | default "--spring.datasource.url=jdbc:mysql://mysql:3306/xxl_job?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&serverTimezone=Asia/Shanghai --spring.datasource.username=root --spring.datasource.password=mysql" }} {{- if not .Values.healthChk.enabled }} {{- with .Values.healthChk.content }} {{- toYaml . | nindent 10 }}