mirror of
https://github.com/kyverno/kyverno.git
synced 2025-04-15 16:56:56 +00:00
feat: add cronjob ttl support (#10083)
* feat: add cronjob ttl support Signed-off-by: Victor Boissiere <victor.boissiere@qonto.com> * fix: add artifacthub changes Signed-off-by: Victor Boissiere <victor.boissiere@qonto.com> * fix: run make codegen-helm-all Signed-off-by: Victor Boissiere <victor.boissiere@qonto.com> --------- Signed-off-by: Victor Boissiere <victor.boissiere@qonto.com>
This commit is contained in:
parent
5d362d3691
commit
70eb981539
5 changed files with 18 additions and 2 deletions
|
@ -41,6 +41,8 @@ annotations:
|
|||
description: Add podLabels to the post-upgrade hook
|
||||
- kind: added
|
||||
description: Add podLabels to the pre-delete hook
|
||||
- kind: added
|
||||
description: Add cronjob ttl support
|
||||
- kind: fixed
|
||||
description: Ensure CA certificate config maps are created when data is provided
|
||||
dependencies:
|
||||
|
|
|
@ -729,6 +729,7 @@ The chart values are organised per component.
|
|||
|-----|------|---------|-------------|
|
||||
| cleanupJobs.admissionReports.enabled | bool | `true` | Enable cleanup cronjob |
|
||||
| cleanupJobs.admissionReports.backoffLimit | int | `3` | Maximum number of retries before considering a Job as failed. Defaults to 3. |
|
||||
| cleanupJobs.admissionReports.ttlSecondsAfterFinished | string | `""` | Time until the pod from the cronjob is deleted |
|
||||
| cleanupJobs.admissionReports.image.registry | string | `nil` | Image registry |
|
||||
| cleanupJobs.admissionReports.image.repository | string | `"bitnami/kubectl"` | Image repository |
|
||||
| cleanupJobs.admissionReports.image.tag | string | `"1.28.5"` | Image tag Defaults to `latest` if omitted |
|
||||
|
@ -750,6 +751,7 @@ The chart values are organised per component.
|
|||
| cleanupJobs.admissionReports.nodeAffinity | object | `{}` | Node affinity constraints. |
|
||||
| cleanupJobs.clusterAdmissionReports.enabled | bool | `true` | Enable cleanup cronjob |
|
||||
| cleanupJobs.clusterAdmissionReports.backoffLimit | int | `3` | Maximum number of retries before considering a Job as failed. Defaults to 3. |
|
||||
| cleanupJobs.clusterAdmissionReports.ttlSecondsAfterFinished | string | `""` | Time until the pod from the cronjob is deleted |
|
||||
| cleanupJobs.clusterAdmissionReports.image.registry | string | `nil` | Image registry |
|
||||
| cleanupJobs.clusterAdmissionReports.image.repository | string | `"bitnami/kubectl"` | Image repository |
|
||||
| cleanupJobs.clusterAdmissionReports.image.tag | string | `"1.28.5"` | Image tag Defaults to `latest` if omitted |
|
||||
|
|
|
@ -14,6 +14,9 @@ spec:
|
|||
jobTemplate:
|
||||
spec:
|
||||
backoffLimit: {{ .Values.cleanupJobs.admissionReports.backoffLimit }}
|
||||
{{- if .Values.cleanupJobs.admissionReports.ttlSecondsAfterFinished }}
|
||||
ttlSecondsAfterFinished: {{ .Values.cleanupJobs.admissionReports.ttlSecondsAfterFinished }}
|
||||
{{- end }}
|
||||
template:
|
||||
metadata:
|
||||
{{- with .Values.cleanupJobs.admissionReports.podAnnotations }}
|
||||
|
@ -85,4 +88,4 @@ spec:
|
|||
{{- tpl (toYaml .) $ | nindent 14 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
|
|
@ -14,6 +14,9 @@ spec:
|
|||
jobTemplate:
|
||||
spec:
|
||||
backoffLimit: {{ .Values.cleanupJobs.clusterAdmissionReports.backoffLimit }}
|
||||
{{- if .Values.cleanupJobs.clusterAdmissionReports.ttlSecondsAfterFinished }}
|
||||
ttlSecondsAfterFinished: {{ .Values.cleanupJobs.clusterAdmissionReports.ttlSecondsAfterFinished }}
|
||||
{{- end }}
|
||||
template:
|
||||
metadata:
|
||||
{{- with .Values.cleanupJobs.clusterAdmissionReports.podAnnotations }}
|
||||
|
@ -85,4 +88,4 @@ spec:
|
|||
{{- tpl (toYaml .) $ | nindent 14 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
|
|
@ -703,6 +703,9 @@ cleanupJobs:
|
|||
# -- Maximum number of retries before considering a Job as failed. Defaults to 3.
|
||||
backoffLimit: 3
|
||||
|
||||
# -- Time until the pod from the cronjob is deleted
|
||||
ttlSecondsAfterFinished: ""
|
||||
|
||||
image:
|
||||
# -- (string) Image registry
|
||||
registry: ~
|
||||
|
@ -780,6 +783,9 @@ cleanupJobs:
|
|||
# -- Maximum number of retries before considering a Job as failed. Defaults to 3.
|
||||
backoffLimit: 3
|
||||
|
||||
# -- Time until the pod from the cronjob is deleted
|
||||
ttlSecondsAfterFinished: ""
|
||||
|
||||
image:
|
||||
# -- (string) Image registry
|
||||
registry: ~
|
||||
|
|
Loading…
Add table
Reference in a new issue