Skip to content

Commit

Permalink
[stable/jenkins] Add runAsUser and runAsGroup to podTemplate (helm#22641
Browse files Browse the repository at this point in the history
)

Signed-off-by: Jan Baraniewski <janekbaraniewski@gmail.com>
  • Loading branch information
janekbaraniewski authored and includerandom committed Jul 19, 2020
1 parent d3b33f5 commit 5115ad1
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions stable/jenkins/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

## 2.1.0

Add support to set `runAsUser` and `runAsGroup` for `agent`.

## 2.0.1

Only render authorizationStrategy and securityRealm when values are set.
Expand Down
2 changes: 1 addition & 1 deletion stable/jenkins/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
name: jenkins
home: https://jenkins.io/
version: 2.0.1
version: 2.1.0
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
Expand Down
2 changes: 2 additions & 0 deletions stable/jenkins/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,8 @@ Some third-party systems, e.g. GitHub, use HTML-formatted data in their payload
| `agent.slaveConnectTimeout`| Timeout in seconds for an agent to be online | 100 |
| `agent.podTemplates` | Configures extra pod templates for the default kubernetes cloud | `{}` |
| `agent.workingDir` | Configure working directory for default agent | `/home/jenkins` |
| `agent.runAsUser` | Configure container user | Not set |
| `agent.runAsGroup` | Configure container group | Not set |
| `additionalAgents` | Configure additional agents which inherit values from `agent` | `{}` |

Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`.
Expand Down
2 changes: 2 additions & 0 deletions stable/jenkins/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,8 @@ Returns kubernetes pod template configuration as code
resourceLimitMemory: {{.Values.agent.resources.limits.memory}}
resourceRequestCpu: {{.Values.agent.resources.requests.cpu}}
resourceRequestMemory: {{.Values.agent.resources.requests.memory}}
runAsUser: {{ .Values.agent.runAsUser }}
runAsGroup: {{ .Values.agent.runAsGroup }}
ttyEnabled: {{ .Values.agent.TTYEnabled }}
workingDir: {{ .Values.agent.workingDir }}
{{- if .Values.agent.envVars }}
Expand Down
2 changes: 2 additions & 0 deletions stable/jenkins/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,8 @@ agent:
imagePullSecretName:
componentName: "jenkins-slave"
privileged: false
runAsUser:
runAsGroup:
resources:
requests:
cpu: "512m"
Expand Down

0 comments on commit 5115ad1

Please sign in to comment.