mirror of
https://github.com/bitnami/charts.git
synced 2026-03-15 14:57:16 +08:00
[bitnami/mysql]: Add a possibility to disable default initContainers (#36228)
* [bitnami/mysql]: Add a possibility to disable default initContainers When using custom mysql image for example preserve-logs-symlinks initContainer fails, add an option to disable default initcontainers Signed-off-by: Kamil Swoboda <kswoboda@getresponse.com> * Update CHANGELOG.md Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com> * Update CHANGELOG.md Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com> --------- Signed-off-by: Kamil Swoboda <kswoboda@getresponse.com> Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com> Co-authored-by: Bitnami Bot <bitnami.bot@broadcom.com>
This commit is contained in:
@@ -1,8 +1,12 @@
|
||||
# Changelog
|
||||
|
||||
## 14.0.3 (2025-08-14)
|
||||
## 14.0.4 (2025-09-03)
|
||||
|
||||
* [bitnami/mysql] :zap: :arrow_up: Update dependency references ([#35892](https://github.com/bitnami/charts/pull/35892))
|
||||
* [bitnami/mysql]: Add a possibility to disable default initContainers ([#36228](https://github.com/bitnami/charts/pull/36228))
|
||||
|
||||
## <small>14.0.3 (2025-08-14)</small>
|
||||
|
||||
* [bitnami/mysql] :zap: :arrow_up: Update dependency references (#35892) ([79196dc](https://github.com/bitnami/charts/commit/79196dc5824d51adce926b809c6f7ecb7f9f0a43)), closes [#35892](https://github.com/bitnami/charts/issues/35892)
|
||||
|
||||
## <small>14.0.2 (2025-08-07)</small>
|
||||
|
||||
|
||||
@@ -402,6 +402,7 @@ If you encounter errors when working with persistent volumes, refer to our [trou
|
||||
| `primary.extraVolumes` | Optionally specify extra list of additional volumes to the MySQL Primary pod(s) | `[]` |
|
||||
| `primary.extraVolumeMounts` | Optionally specify extra list of additional volumeMounts for the MySQL Primary container(s) | `[]` |
|
||||
| `primary.initContainers` | Add additional init containers for the MySQL Primary pod(s) | `[]` |
|
||||
| `primary.enableDefaultInitContainers` | enables (or disables if false) the default init containers (logs-symlinks, volume permissions) | `true` |
|
||||
| `primary.sidecars` | Add additional sidecar containers for the MySQL Primary pod(s) | `[]` |
|
||||
| `primary.service.type` | MySQL Primary K8s service type | `ClusterIP` |
|
||||
| `primary.service.ports.mysql` | MySQL Primary K8s service port | `3306` |
|
||||
@@ -512,6 +513,7 @@ If you encounter errors when working with persistent volumes, refer to our [trou
|
||||
| `secondary.extraVolumes` | Optionally specify extra list of additional volumes to the MySQL secondary pod(s) | `[]` |
|
||||
| `secondary.extraVolumeMounts` | Optionally specify extra list of additional volumeMounts for the MySQL secondary container(s) | `[]` |
|
||||
| `secondary.initContainers` | Add additional init containers for the MySQL secondary pod(s) | `[]` |
|
||||
| `secondary.enableDefaultInitContainers` | enables (or disables if false) the default init containers (logs-symlinks, volume permissions) | `true` |
|
||||
| `secondary.sidecars` | Add additional sidecar containers for the MySQL secondary pod(s) | `[]` |
|
||||
| `secondary.service.type` | MySQL secondary Kubernetes service type | `ClusterIP` |
|
||||
| `secondary.service.ports.mysql` | MySQL secondary Kubernetes service port | `3306` |
|
||||
|
||||
@@ -83,7 +83,9 @@ spec:
|
||||
{{- if .Values.primary.terminationGracePeriodSeconds }}
|
||||
terminationGracePeriodSeconds: {{ .Values.primary.terminationGracePeriodSeconds }}
|
||||
{{- end }}
|
||||
{{- if or .Values.primary.enableDefaultInitContainers .Values.primary.initContainers }}
|
||||
initContainers:
|
||||
{{- if .Values.primary.enableDefaultInitContainers }}
|
||||
- name: preserve-logs-symlinks
|
||||
image: {{ include "mysql.image" . }}
|
||||
imagePullPolicy: {{ .Values.image.pullPolicy | quote }}
|
||||
@@ -138,9 +140,11 @@ spec:
|
||||
mountPath: /tmp
|
||||
subPath: tmp-dir
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- if .Values.primary.initContainers }}
|
||||
{{- include "common.tplvalues.render" (dict "value" .Values.primary.initContainers "context" $) | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
containers:
|
||||
- name: mysql
|
||||
image: {{ include "mysql.image" . }}
|
||||
|
||||
@@ -84,7 +84,9 @@ spec:
|
||||
{{- if .Values.secondary.terminationGracePeriodSeconds }}
|
||||
terminationGracePeriodSeconds: {{ .Values.secondary.terminationGracePeriodSeconds }}
|
||||
{{- end }}
|
||||
{{- if or .Values.secondary.enableDefaultInitContainers .Values.secondary.initContainers }}
|
||||
initContainers:
|
||||
{{- if .Values.secondary.enableDefaultInitContainers }}
|
||||
- name: preserve-logs-symlinks
|
||||
image: {{ include "mysql.image" . }}
|
||||
imagePullPolicy: {{ .Values.image.pullPolicy | quote }}
|
||||
@@ -139,9 +141,11 @@ spec:
|
||||
mountPath: /tmp
|
||||
subPath: tmp-dir
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- if .Values.secondary.initContainers }}
|
||||
{{- include "common.tplvalues.render" (dict "value" .Values.secondary.initContainers "context" $) | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
containers:
|
||||
- name: mysql
|
||||
image: {{ include "mysql.image" . }}
|
||||
|
||||
@@ -578,6 +578,9 @@ primary:
|
||||
## @param primary.initContainers Add additional init containers for the MySQL Primary pod(s)
|
||||
##
|
||||
initContainers: []
|
||||
## @param primary.enableDefaultInitContainers enables (or disables if false) the default init containers (logs-symlinks, volume permissions)
|
||||
##
|
||||
enableDefaultInitContainers: true
|
||||
## @param primary.sidecars Add additional sidecar containers for the MySQL Primary pod(s)
|
||||
##
|
||||
sidecars: []
|
||||
@@ -1018,6 +1021,9 @@ secondary:
|
||||
## @param secondary.initContainers Add additional init containers for the MySQL secondary pod(s)
|
||||
##
|
||||
initContainers: []
|
||||
## @param secondary.enableDefaultInitContainers enables (or disables if false) the default init containers (logs-symlinks, volume permissions)
|
||||
##
|
||||
enableDefaultInitContainers: true
|
||||
## @param secondary.sidecars Add additional sidecar containers for the MySQL secondary pod(s)
|
||||
##
|
||||
sidecars: []
|
||||
|
||||
Reference in New Issue
Block a user