mirror of
https://github.com/jenkinsci/kubernetes-operator.git
synced 2026-09-30 05:01:10 +02:00
feat: expose jenkins master terminationGracePeriodSeconds (#1012)
Co-authored-by: brokenpip3 <brokenpip3@gmail.com>
This commit is contained in:
co-authored by
brokenpip3
parent
061995a65c
commit
18197e66b7
@@ -90,6 +90,7 @@ Kubernetes native operator which fully manages Jenkins on Kubernetes
|
||||
| jenkins.seedJobAgentImage | string | `""` | |
|
||||
| jenkins.seedJobs | list | `[]` | |
|
||||
| jenkins.serviceAccount.annotations | object | `{}` | |
|
||||
| jenkins.terminationGracePeriodSeconds | int | `30` | |
|
||||
| jenkins.tolerations | list | `[]` | |
|
||||
| jenkins.validateSecurityWarnings | bool | `false` | |
|
||||
| jenkins.volumeMounts | list | `[]` | |
|
||||
|
||||
@@ -1330,6 +1330,10 @@ spec:
|
||||
type: string
|
||||
type: object
|
||||
type: object
|
||||
terminationGracePeriodSeconds:
|
||||
description: 'Optional duration in seconds the pod needs to terminate gracefully.'
|
||||
type: integer
|
||||
default: 30
|
||||
tolerations:
|
||||
description: If specified, the pod's tolerations.
|
||||
items:
|
||||
|
||||
@@ -115,6 +115,9 @@ spec:
|
||||
{{- with .Values.jenkins.hostAliases }}
|
||||
hostAliases: {{ toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- if .Values.jenkins.terminationGracePeriodSeconds }}
|
||||
terminationGracePeriodSeconds: {{ .Values.jenkins.terminationGracePeriodSeconds }}
|
||||
{{- end }}
|
||||
containers:
|
||||
- name: jenkins-master
|
||||
image: {{ .Values.jenkins.image }}
|
||||
@@ -137,7 +140,7 @@ spec:
|
||||
{{- if .Values.jenkins.backup.enabled }}
|
||||
- name: {{ .Values.jenkins.backup.containerName }}
|
||||
image: {{ .Values.jenkins.backup.image }}
|
||||
imagePullPolicy: {{ .Values.jenkins.imagePullPolicy }}
|
||||
imagePullPolicy: {{ .Values.jenkins.imagePullPolicy }}
|
||||
{{- with .Values.jenkins.backup.resources }}
|
||||
resources: {{ toYaml . | nindent 10 }}
|
||||
{{- end }}
|
||||
|
||||
@@ -65,6 +65,10 @@ jenkins:
|
||||
# - "foo.remote"
|
||||
# - "bar.remote"
|
||||
|
||||
# Optional duration in seconds the pod needs to terminate gracefully.
|
||||
# Default 30sec
|
||||
terminationGracePeriodSeconds: 30
|
||||
|
||||
# validateSecurityWarnings enables or disables validating potential security warnings in Jenkins plugins via admission webhooks.
|
||||
validateSecurityWarnings: false
|
||||
|
||||
|
||||
Reference in New Issue
Block a user