[stable/percona]: Resource and image overrides for initcontainer (#17500)

* [stable/percona]: Resource and image overrides for initcontainer

Signed-off-by: Asmund Tokheim <tokheim@outlook.com>

* [stable/percona]: bump minor version

Signed-off-by: Asmund Tokheim <tokheim@outlook.com>
This commit is contained in:
tokheim
2019-10-10 23:59:39 -07:00
committed by Kubernetes Prow Robot
parent 2efc13c5ab
commit b3743bbd71
3 changed files with 22 additions and 3 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: percona
version: 1.1.0
version: 1.2.0
appVersion: 5.7.17
description: free, fully compatible, enhanced, open source drop-in replacement for
MySQL
+4 -2
View File
@@ -18,8 +18,10 @@ spec:
{{- end }}
initContainers:
- name: "remove-lost-found"
image: "busybox:1.25.0"
imagePullPolicy: {{ .Values.imagePullPolicy | quote }}
image: "{{ .Values.initImage.repository }}:{{ .Values.initImage.tag }}"
imagePullPolicy: {{ .Values.initImage.pullPolicy | quote }}
resources:
{{ toYaml .Values.initResources | indent 10 }}
command:
- "rm"
- "-fr"
+17
View File
@@ -73,3 +73,20 @@ tolerations: []
## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
##
affinity: {}
## Configure resources for the init container
##
initResources: {}
# limits:
# cpu: 25m
# memory: 128Mi
# requests:
# cpu: 25m
# memory 128Mi
## Override image used by init container
##
initImage:
repository: "busybox"
tag: "1.25.0"
pullPolicy: "IfNotPresent"