diff --git a/charts/mysql/Chart.yaml b/charts/mysql/Chart.yaml index d6be3dcc91eeb35777d12fe7e1f57f9387d75dcd..0e6ef2399ddeaa7758187e42c6f4e8ce2e931864 100644 --- a/charts/mysql/Chart.yaml +++ b/charts/mysql/Chart.yaml @@ -7,6 +7,6 @@ type: application maintainers: - name: groundhog2k -version: 0.1.4 +version: 0.1.5 appVersion: "8.0.31-oracle" diff --git a/charts/mysql/README.md b/charts/mysql/README.md index 4818c0d17daddf5e8da2f163fcf67a7eced88c5b..c8ae2cb0b11b41fc6f55d974e2a08f382507b4e1 100644 --- a/charts/mysql/README.md +++ b/charts/mysql/README.md @@ -1,6 +1,6 @@ # MySQL -   +   ## Changelog @@ -68,6 +68,7 @@ helm uninstall my-release | customLivenessProbe | object | `{}` | Custom liveness probe (overwrites default liveness probe configuration) | | customReadinessProbe | object | `{}` | Custom readiness probe (overwrites default readiness probe configuration) | | resources | object | `{}` | Resource limits and requests | +| initResources | object | `{}` | Resource limits and requests for the default init container | | nodeSelector | object | `{}` | Deployment node selector | | podAnnotations | object | `{}` | Additional pod annotations | | podSecurityContext | object | `see values.yaml` | Pod security context | diff --git a/charts/mysql/RELEASENOTES.md b/charts/mysql/RELEASENOTES.md index 43bed9486f8f67818f722999c201bb9d27b49f6d..4db509b19828dd40fcf6ffff8be8bef5beb1eeb3 100644 --- a/charts/mysql/RELEASENOTES.md +++ b/charts/mysql/RELEASENOTES.md @@ -7,4 +7,5 @@ | 0.1.2 | 8.0.30 | Implemented support for custom inline init scripts | | 0.1.3 | 8.0.30 | Implemented support for image.registry option | | 0.1.4 | 8.0.31 | Upgraded MySQL to 8.0.31 | +| 0.1.5 | 8.0.31 | Added support for init container resources (thx @Footur) | | | | | diff --git a/charts/mysql/templates/statefulset.yaml b/charts/mysql/templates/statefulset.yaml index 2da99769c487ba88abf5fc231e7fe63f5269e6d5..68f2fe3c963eeffa9e625989caf4cdc01e81afe7 100644 --- a/charts/mysql/templates/statefulset.yaml +++ b/charts/mysql/templates/statefulset.yaml @@ -70,6 +70,10 @@ spec: - mountPath: /configs name: configs command: [ "/initscripts/init.sh" ] + {{- with .Values.initResources }} + resources: + {{- toYaml . | nindent 12 }} + {{- end }} {{- with .Values.extraInitContainers }} {{- toYaml . | nindent 8 }} {{- end }} diff --git a/charts/mysql/values.yaml b/charts/mysql/values.yaml index 9d6a613bc1a9afddf5d9c4382b9bfd70cc1d702b..05d338e02f30b2b3b3f79e7ab0fa581b694fd98a 100644 --- a/charts/mysql/values.yaml +++ b/charts/mysql/values.yaml @@ -70,6 +70,15 @@ resources: {} # cpu: 100m # memory: 128Mi +# Resources of the default init container +initResources: {} + # limits: + # cpu: 100m + # memory: 128Mi + # requests: + # cpu: 100m + # memory: 128Mi + tolerations: [] affinity: {}