Skip to content

Commit

Permalink
[stable/jenkins] add yamlMergeStrategy to agent default template (hel…
Browse files Browse the repository at this point in the history
…m#22593)

* [stable/jenkins] add yamlMergeStrategy to default agent

Signed-off-by: Kevin Lefevre <[email protected]>

* review helm#1

Signed-off-by: Kevin Lefevre <[email protected]>
  • Loading branch information
ArchiFleKs authored May 31, 2020
1 parent 43d6d9b commit 21ac2db
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
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: 1.23.2
version: 1.24.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
1 change: 1 addition & 0 deletions stable/jenkins/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ Some third-party systems, e.g. GitHub, use HTML-formatted data in their payload
| `agent.podName` | Agent Pod base name | Not set |
| `agent.idleMinutes` | Allows the Pod to remain active for reuse | 0 |
| `agent.yamlTemplate` | The raw yaml of a Pod API Object to merge into the agent spec | Not set |
| `agent.yamlMergeStrategy | Defines how the raw yaml field gets merged with yaml definitions from inherited pod templates | `override` |
| `agent.slaveConnectTimeout`| Timeout in seconds for an agent to be online | 100 |
| `agent.podTemplates` | Configures extra pod templates for the default kubernetes cloud | `{}` |
| `additionalAgents` | Configure additional agents which inherit values from `agent` | `{}` |
Expand Down
2 changes: 1 addition & 1 deletion stable/jenkins/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ Returns kubernetes pod template configuration as code
yaml: |-
{{- tpl (trim .Values.agent.yamlTemplate) . | nindent 4 }}
{{- end }}
yamlMergeStrategy: "override"
yamlMergeStrategy: {{ .Values.agent.yamlMergeStrategy }}
{{- end -}}

{{/*
Expand Down
2 changes: 2 additions & 0 deletions stable/jenkins/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,8 @@ agent:
# - key: "key"
# operator: "Equal"
# value: "value"
# Defines how the raw yaml field gets merged with yaml definitions from inherited pod templates: merge or override
yamlMergeStrategy: "override"
# Timeout in seconds for an agent to be online
slaveConnectTimeout: 100

Expand Down

0 comments on commit 21ac2db

Please sign in to comment.