Skip to content

Commit

Permalink
Add resources field to redis init containers (helm#11243)
Browse files Browse the repository at this point in the history
Signed-off-by: vkropotko <[email protected]>
  • Loading branch information
Vyacheslav authored and tbuchier committed Feb 14, 2019
1 parent db009d6 commit 295f615
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion stable/redis/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: redis
version: 6.0.0
version: 6.0.1
appVersion: 4.0.12
description: Open source, advanced key-value store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets and sorted sets.
keywords:
Expand Down
4 changes: 4 additions & 0 deletions stable/redis/templates/redis-master-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,8 @@ spec:
command: ["/bin/chown", "-R", "{{ .Values.master.securityContext.runAsUser }}:{{ .Values.master.securityContext.fsGroup }}", "{{ .Values.master.persistence.path }}"]
securityContext:
runAsUser: 0
resources:
{{ toYaml .Values.volumePermissions.resources | indent 10 }}
volumeMounts:
- name: redis-data
mountPath: {{ .Values.master.persistence.path }}
Expand All @@ -170,6 +172,8 @@ spec:
{{- if .Values.sysctlImage.enabled }}
- name: init-sysctl
image: {{ template "redis.sysctl.image" . }}
resources:
{{ toYaml .Values.sysctlImage.resources | indent 10 }}
{{- if .Values.sysctlImage.mountHostSys }}
volumeMounts:
- name: host-sys
Expand Down
2 changes: 2 additions & 0 deletions stable/redis/values-production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,7 @@ volumePermissions:
repository: bitnami/minideb
tag: latest
pullPolicy: IfNotPresent
resources: {}

## Redis config file
## ref: https://redis.io/topics/config
Expand All @@ -387,3 +388,4 @@ sysctlImage:
tag: latest
pullPolicy: Always
mountHostSys: false
resources: {}
2 changes: 2 additions & 0 deletions stable/redis/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,7 @@ volumePermissions:
repository: bitnami/minideb
tag: latest
pullPolicy: IfNotPresent
resources: {}

## Redis config file
## ref: https://redis.io/topics/config
Expand All @@ -388,3 +389,4 @@ sysctlImage:
tag: latest
pullPolicy: Always
mountHostSys: false
resources: {}

0 comments on commit 295f615

Please sign in to comment.