Skip to content

Commit 81c3e83

Browse files
authored
Make activeDeadlineSeconds for backup job configurable (#86)
Signed-off-by: Prabhu Jayakumar <[email protected]>
1 parent 83b15fe commit 81c3e83

File tree

4 files changed

+10
-1
lines changed

4 files changed

+10
-1
lines changed

charts/jenkins/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ Use the following links to reference issues, PRs, and commits prior to v2.6.0.
1010

1111
The change log until v1.5.7 was auto-generated based on git commits. Those entries include a reference to the git commit to be able to get more details.
1212

13+
## 2.10.0
14+
15+
Make activeDeadlineSeconds for backup job configurable
16+
1317
## 2.9.0
1418

1519
Make namespace of PrometheusRule configurable

charts/jenkins/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v1
22
name: jenkins
33
home: https://jenkins.io/
4-
version: 2.9.0
4+
version: 2.10.0
55
appVersion: lts
66
description: Open source continuous integration server. It supports multiple SCM tools
77
including CVS, Subversion and Git. It can execute Apache Ant and Apache Maven-based

charts/jenkins/templates/jenkins-backup-cronjob.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ spec:
1616
startingDeadlineSeconds: 120
1717
jobTemplate:
1818
spec:
19+
{{- if .Values.backup.activeDeadlineSeconds }}
20+
activeDeadlineSeconds: "{{ .Values.backup.activeDeadlineSeconds }}"
21+
{{- end }}
1922
template:
2023
metadata:
2124
{{- if .Values.backup.labels }}

charts/jenkins/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -694,6 +694,8 @@ backup:
694694
# Example for authorization to AWS S3 using kube2iam
695695
# Can also be done using environment variables
696696
# iam.amazonaws.com/role: "jenkins"
697+
# Set this to terminate the job that is running/failing continously and set the job status to "Failed"
698+
activeDeadlineSeconds: ""
697699
image:
698700
repository: "maorfr/kube-tasks"
699701
tag: "0.2.0"

0 commit comments

Comments
 (0)