[bitnami/mysql] Update to mysql chart to have startdb script (#18344)

* [bitnami/mysql] Update to mysql chart to have startdb script

Signed-off-by: Syed Hashim <hashim.muhammad9@gmail.com>

* Update README.md with readme-generator-for-helm

Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>

* [bitnami/mysql] bump chart version

Signed-off-by: Syed Hashim <hashim.muhammad9@gmail.com>

* [bitnami/mysql] remove label app.kubernetes.io/component

Signed-off-by: Syed Hashim <hashim.muhammad9@gmail.com>

---------

Signed-off-by: Syed Hashim <hashim.muhammad9@gmail.com>
Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>
Co-authored-by: Bitnami Containers <bitnami-bot@vmware.com>
This commit is contained in:
Syed Muhammad Hashim
2023-08-15 14:43:31 +05:00
committed by GitHub
parent 4073e5d3de
commit 22b07e00fa
7 changed files with 65 additions and 1 deletions

View File

@@ -0,0 +1,21 @@
{{- /*
Copyright VMware, Inc.
SPDX-License-Identifier: APACHE-2.0
*/}}
{{- if and .Values.startdbScripts (not .Values.startdbScriptsConfigMap) }}
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ printf "%s-start-scripts" (include "mysql.primary.fullname" .) }}
namespace: {{ include "common.names.namespace" . | quote }}
labels: {{- include "common.labels.standard" . | nindent 4 }}
{{- if .Values.commonLabels }}
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
{{- end }}
{{- if .Values.commonAnnotations }}
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}
data:
{{- include "common.tplvalues.render" (dict "value" .Values.startdbScripts "context" .) | nindent 2 }}
{{- end }}

View File

@@ -254,6 +254,10 @@ spec:
- name: custom-init-scripts
mountPath: /docker-entrypoint-initdb.d
{{- end }}
{{- if or .Values.startdbScriptsConfigMap .Values.startdbScripts }}
- name: custom-start-scripts
mountPath: /docker-entrypoint-startdb.d
{{- end }}
{{- if or .Values.primary.configuration .Values.primary.existingConfigmap }}
- name: config
mountPath: /opt/bitnami/mysql/conf/my.cnf
@@ -338,6 +342,11 @@ spec:
configMap:
name: {{ include "mysql.initdbScriptsCM" . }}
{{- end }}
{{- if or .Values.startdbScriptsConfigMap .Values.startdbScripts }}
- name: custom-start-scripts
configMap:
name: {{ include "mysql.startdbScriptsCM" . }}
{{- end }}
{{- if and .Values.auth.usePasswordFiles (not .Values.auth.customPasswordFiles) }}
- name: mysql-credentials
secret: