From cc658c39c56221c4b478bbe0bd9928742f832abf Mon Sep 17 00:00:00 2001 From: Alberto Clemente <70150664+Albe83@users.noreply.github.com> Date: Fri, 5 Aug 2022 12:37:55 +0200 Subject: [PATCH 1/2] Customize Storage Class Added support to customize storageClassName field in helm chart deployment. --- helm/mysql-innodbcluster/templates/deployment_cluster.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/helm/mysql-innodbcluster/templates/deployment_cluster.yaml b/helm/mysql-innodbcluster/templates/deployment_cluster.yaml index bb9e9c7..e73ea5b 100644 --- a/helm/mysql-innodbcluster/templates/deployment_cluster.yaml +++ b/helm/mysql-innodbcluster/templates/deployment_cluster.yaml @@ -56,6 +56,9 @@ spec: {{- if .Values.datadirVolumeClaimTemplate }} {{- with .Values.datadirVolumeClaimTemplate }} datadirVolumeClaimTemplate: + {{- if .storageClassName }} + storageClassName: "{{ .storageClassName }}" + {{- end}} {{- if .accessModes }} accessModes: [ "{{ .accessModes }}" ] {{- end }} From 3fa81359545cae9621b8d1bd466356bebaa4f28b Mon Sep 17 00:00:00 2001 From: Alberto Clemente <70150664+Albe83@users.noreply.github.com> Date: Fri, 5 Aug 2022 13:28:29 +0200 Subject: [PATCH 2/2] Update values.yaml --- helm/mysql-innodbcluster/values.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/helm/mysql-innodbcluster/values.yaml b/helm/mysql-innodbcluster/values.yaml index fc8c8fa..522d1ab 100644 --- a/helm/mysql-innodbcluster/values.yaml +++ b/helm/mysql-innodbcluster/values.yaml @@ -31,6 +31,7 @@ baseServerId: 1000 #datadirVolumeClaimTemplate: +# storageClassName: # accessModes: # resources: # requests: