mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
fix runAsUser invalid comparison (#19832)
Signed-off-by: Peter Evers <pevers90@gmail.com>
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
5561add61e
commit
2659ca16cc
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user