[stable/jenkins] revert runAsUser comparison (#22054)

* [stable/jenkins] revert runAsUser comparison

Signed-off-by: Torsten Walter <torsten.walter@syncier.com>

* [stable/jenkins] convert runAsUser to int

Signed-off-by: Torsten Walter <torsten.walter@syncier.com>
This commit is contained in:
Torsten Walter
2020-04-21 23:39:51 -07:00
committed by GitHub
parent d0dc177048
commit 91867d1570
4 changed files with 8 additions and 2 deletions
+4
View File
@@ -5,6 +5,10 @@ numbering uses [semantic versioning](http://semver.org).
NOTE: The change log until version 1.5.7 is auto generated based on git commits. Those include a reference to the git commit to be able to get more details.
## 1.16.2
Reverts 1.16.1 as it introduced an error #22047
## 1.16.1
Fixed a bug with master.runAsUser variable due to use wrong type for comparison.
+1 -1
View File
@@ -1,7 +1,7 @@
apiVersion: v1
name: jenkins
home: https://jenkins.io/
version: 1.16.1
version: 1.16.2
appVersion: lts
description: Open source continuous integration server. It supports multiple SCM tools
including CVS, Subversion and Git. It can execute Apache Ant and Apache Maven-based
+2
View File
@@ -1,5 +1,7 @@
master:
overwritePluginsFromImage: false
runAsUser: 0
fsGroup: 1000
agent:
resources:
limits:
@@ -73,7 +73,7 @@ spec:
securityContext:
runAsUser: {{ default 0 .Values.master.runAsUser }}
{{- if and (.Values.master.runAsUser) (.Values.master.fsGroup) }}
{{- if not (eq .Values.master.runAsUser 0) }}
{{- if not (eq (int .Values.master.runAsUser) 0) }}
fsGroup: {{ .Values.master.fsGroup }}
{{- end }}
{{- end }}