mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[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:
committed by
Kubernetes Prow Robot
parent
2efc13c5ab
commit
b3743bbd71
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user