[stable/jenkins] Added slave Pod env vars (#8743)

* [stable/jenkins] Added slave Pod env vars

Signed-off-by: ecejjar <jesus.javier.arauz@ericsson.com>

* Bumped up chart version

Signed-off-by: ecejjar <jesus.javier.arauz@ericsson.com>

* Added envVars to values.yaml

Signed-off-by: ecejjar <jesus.javier.arauz@ericsson.com>
This commit is contained in:
Javier Arauz
2019-02-10 23:09:20 -08:00
committed by Kubernetes Prow Robot
parent 6a9d3752a8
commit 1499f66085
4 changed files with 14 additions and 2 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
name: jenkins
home: https://jenkins.io/
version: 0.29.3
version: 0.30.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
+1
View File
@@ -111,6 +111,7 @@ Some third-party systems, e.g. GitHub, use HTML-formatted data in their payload
| `Agent.Privileged` | Agent privileged container | `false` |
| `Agent.resources` | Resources allocation (Requests and Limits) | `{requests: {cpu: 200m, memory: 256Mi}, limits: {cpu: 200m, memory: 256Mi}}`|
| `Agent.volumes` | Additional volumes | `nil` |
| `Agent.envVars | Environment variables for the slave Pod | Not set |
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`.
+8 -1
View File
@@ -100,7 +100,14 @@ data:
</envVars>
</org.csanchez.jenkins.plugins.kubernetes.ContainerTemplate>
</containers>
<envVars/>
<envVars>
{{- range $index, $var := .Values.Agent.envVars }}
<org.csanchez.jenkins.plugins.kubernetes.PodEnvVar>
<key>{{ $var.name }}</key>
<value>{{ $var.value }}</value>
</org.csanchez.jenkins.plugins.kubernetes.PodEnvVar>
{{- end }}
</envVars>
<annotations/>
{{- if .Values.Agent.ImagePullSecret }}
<imagePullSecrets>
+4
View File
@@ -276,6 +276,10 @@ Agent:
# Allowed types are: ConfigMap, EmptyDir, HostPath, Nfs, Pod, Secret
# Configure the attributes as they appear in the corresponding Java class for that type
# https://github.com/jenkinsci/kubernetes-plugin/tree/master/src/main/java/org/csanchez/jenkins/plugins/kubernetes/volumes
# Pod-wide ennvironment, these vars are visible to any container in the slave pod
envVars:
# - name: PATH
# value: /usr/local/bin
volumes:
# - type: Secret
# secretName: mysecret