Skip to content
Draft
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 addons/mysql/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ env:
value: $(MYSQL_ROOT_PASSWORD)
- name: EXPORTER_WEB_PORT
value: "{{ .Values.metrics.service.port }}"
imagePullPolicy: IfNotPresent
imagePullPolicy: {{ default "IfNotPresent" .Values.image.pullPolicy }}
ports:
- name: http-metrics
containerPort: {{ .Values.metrics.service.port }}
Expand Down
4 changes: 2 additions & 2 deletions addons/mysql/templates/_orc.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -248,15 +248,15 @@ switchover:
cp -r /usr/bin/jq /kubeblocks/jq
cp -r /scripts/orchestrator-client /kubeblocks/orchestrator-client
cp -r /usr/local/bin/curl /kubeblocks/curl
imagePullPolicy: {{ default .Values.image.pullPolicy "IfNotPresent" }}
imagePullPolicy: {{ default "IfNotPresent" .Values.image.pullPolicy }}
name: init-jq
volumeMounts:
- mountPath: /kubeblocks
name: kubeblocks
{{- end }}

{{- define "mysql-orc.spec.runtime.mysql" -}}
imagePullPolicy: {{ default .Values.image.pullPolicy "IfNotPresent" }}
imagePullPolicy: {{ default "IfNotPresent" .Values.image.pullPolicy }}
command:
- bash
- -c
Expand Down
2 changes: 1 addition & 1 deletion addons/mysql/templates/cmpd-mysql57-orc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ spec:
- |
mkdir -p {{ .Values.dataMountPath }}/{log,binlog,auditlog,temp}
cp /usr/lib/mysql/plugin/ {{ .Values.dataMountPath }}/plugin -r
imagePullPolicy: {{ default .Values.image.pullPolicy "IfNotPresent" }}
imagePullPolicy: {{ default "IfNotPresent" .Values.image.pullPolicy }}
volumeMounts:
- mountPath: {{ .Values.dataMountPath }}
name: data
Expand Down
4 changes: 2 additions & 2 deletions addons/mysql/templates/cmpd-mysql57.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ spec:
- |
mkdir -p {{ .Values.dataMountPath }}/{log,binlog,auditlog}
cp /usr/lib/mysql/plugin/ {{ .Values.dataMountPath }}/plugin -r
imagePullPolicy: {{ default .Values.image.pullPolicy "IfNotPresent" }}
imagePullPolicy: {{ default "IfNotPresent" .Values.image.pullPolicy }}
volumeMounts:
- mountPath: {{ .Values.dataMountPath }}
name: data
Expand All @@ -53,7 +53,7 @@ spec:
{{- include "mysql.spec.runtime.common" . | nindent 6 }}
containers:
- name: mysql
imagePullPolicy: {{ default .Values.image.pullPolicy "IfNotPresent" }}
imagePullPolicy: {{ default "IfNotPresent" .Values.image.pullPolicy }}
command:
- syncer
- --port
Expand Down
4 changes: 2 additions & 2 deletions addons/mysql/templates/cmpd-mysql80-mgr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ spec:
- |
mkdir -p {{ .Values.dataMountPath }}/{log,binlog,auditlog}
cp /usr/lib/mysql/plugin/ {{ .Values.dataMountPath }}/plugin -r
imagePullPolicy: {{ default .Values.image.pullPolicy "IfNotPresent" }}
imagePullPolicy: {{ default "IfNotPresent" .Values.image.pullPolicy }}
volumeMounts:
- mountPath: {{ .Values.dataMountPath }}
name: data
Expand All @@ -43,7 +43,7 @@ spec:
{{- include "mysql.spec.runtime.common" . | nindent 6 }}
containers:
- name: mysql
imagePullPolicy: {{ default .Values.image.pullPolicy "IfNotPresent" }}
imagePullPolicy: {{ default "IfNotPresent" .Values.image.pullPolicy }}
command:
- syncer
- --port
Expand Down
2 changes: 1 addition & 1 deletion addons/mysql/templates/cmpd-mysql80-orc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ spec:
- |
mkdir -p {{ .Values.dataMountPath }}/{log,binlog,auditlog,temp}
cp /usr/lib/mysql/plugin/ {{ .Values.dataMountPath }}/plugin -r
imagePullPolicy: {{ default .Values.image.pullPolicy "IfNotPresent" }}
imagePullPolicy: {{ default "IfNotPresent" .Values.image.pullPolicy }}
volumeMounts:
- mountPath: {{ .Values.dataMountPath }}
name: data
Expand Down
4 changes: 2 additions & 2 deletions addons/mysql/templates/cmpd-mysql80.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ spec:
- |
mkdir -p {{ .Values.dataMountPath }}/{log,binlog,auditlog}
cp /usr/lib/mysql/plugin/ {{ .Values.dataMountPath }}/plugin -r
imagePullPolicy: {{ default .Values.image.pullPolicy "IfNotPresent" }}
imagePullPolicy: {{ default "IfNotPresent" .Values.image.pullPolicy }}
volumeMounts:
- mountPath: {{ .Values.dataMountPath }}
name: data
Expand All @@ -53,7 +53,7 @@ spec:
{{- include "mysql.spec.runtime.common" . | nindent 6 }}
containers:
- name: mysql
imagePullPolicy: {{ default .Values.image.pullPolicy "IfNotPresent" }}
imagePullPolicy: {{ default "IfNotPresent" .Values.image.pullPolicy }}
command:
- syncer
- --port
Expand Down
2 changes: 1 addition & 1 deletion addons/mysql/templates/cmpd-mysql84-mgr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ spec:
{{- include "mysql.spec.runtime.common" . | nindent 6 }}
containers:
- name: mysql
imagePullPolicy: {{ default .Values.image.pullPolicy "IfNotPresent" }}
imagePullPolicy: {{ default "IfNotPresent" .Values.image.pullPolicy }}
command:
- syncer
- --port
Expand Down
2 changes: 1 addition & 1 deletion addons/mysql/templates/cmpd-mysql84.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ spec:
{{- include "mysql.spec.runtime.common" . | nindent 6 }}
containers:
- name: mysql
imagePullPolicy: {{ default .Values.image.pullPolicy "IfNotPresent" }}
imagePullPolicy: {{ default "IfNotPresent" .Values.image.pullPolicy }}
command:
- syncer
- --port
Expand Down
Loading