fix runAsUser invalid comparison (#19832)

Signed-off-by: Peter Evers <pevers90@gmail.com>
This commit is contained in:
Peter Evers
2020-01-03 02:01:40 -08:00
committed by Kubernetes Prow Robot
parent 5561add61e
commit 2659ca16cc
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: redis
version: 10.3.0
version: 10.3.1
appVersion: 5.0.7
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:
@@ -78,7 +78,7 @@ spec:
- /bin/bash
- -c
- |
{{- if (eq .Values.securityContext.runAsUser 0.0) }}
{{- if (eq (.Values.securityContext.runAsUser | int) 0) }}
useradd redis
chown -R redis {{ .Values.master.persistence.path }}
{{- end }}
@@ -84,7 +84,7 @@ spec:
- /bin/bash
- -c
- |
{{- if (eq .Values.securityContext.runAsUser 0.0) }}
{{- if (eq (.Values.securityContext.runAsUser | int) 0) }}
useradd redis
chown -R redis {{ .Values.slave.persistence.path }}
{{- end }}