Remove completed init jobs using ttl (#235)
* feat: added ttlSecondsAfterFinished configuration to delete completed jobs * added comments for clarification
This commit is contained in:
parent
3918ee36f0
commit
192b3ca2ef
@ -21,7 +21,7 @@ apiVersion: v2
|
|||||||
appVersion: "2.7.4"
|
appVersion: "2.7.4"
|
||||||
description: Apache Pulsar Helm chart for Kubernetes
|
description: Apache Pulsar Helm chart for Kubernetes
|
||||||
name: pulsar
|
name: pulsar
|
||||||
version: 2.7.12
|
version: 2.7.13
|
||||||
home: https://pulsar.apache.org
|
home: https://pulsar.apache.org
|
||||||
sources:
|
sources:
|
||||||
- https://github.com/apache/pulsar
|
- https://github.com/apache/pulsar
|
||||||
|
|||||||
@ -27,6 +27,11 @@ metadata:
|
|||||||
{{- include "pulsar.standardLabels" . | nindent 4 }}
|
{{- include "pulsar.standardLabels" . | nindent 4 }}
|
||||||
component: "{{ .Values.bookkeeper.component }}-init"
|
component: "{{ .Values.bookkeeper.component }}-init"
|
||||||
spec:
|
spec:
|
||||||
|
# This feature was previously behind a feature gate for several Kubernetes versions and will default to true in 1.23 and beyond
|
||||||
|
# https://kubernetes.io/docs/reference/command-line-tools-reference/feature-gates/
|
||||||
|
{{- if .Values.job.ttl.enabled }}
|
||||||
|
ttlSecondsAfterFinished: {{ .Values.job.ttl.secondsAfterFinished }}
|
||||||
|
{{- end }}
|
||||||
template:
|
template:
|
||||||
spec:
|
spec:
|
||||||
{{- if and .Values.rbac.enabled .Values.rbac.psp }}
|
{{- if and .Values.rbac.enabled .Values.rbac.psp }}
|
||||||
|
|||||||
@ -28,6 +28,11 @@ metadata:
|
|||||||
{{- include "pulsar.standardLabels" . | nindent 4 }}
|
{{- include "pulsar.standardLabels" . | nindent 4 }}
|
||||||
component: {{ .Values.pulsar_metadata.component }}
|
component: {{ .Values.pulsar_metadata.component }}
|
||||||
spec:
|
spec:
|
||||||
|
# This feature was previously behind a feature gate for several Kubernetes versions and will default to true in 1.23 and beyond
|
||||||
|
# https://kubernetes.io/docs/reference/command-line-tools-reference/feature-gates/
|
||||||
|
{{- if .Values.job.ttl.enabled }}
|
||||||
|
ttlSecondsAfterFinished: {{ .Values.job.ttl.secondsAfterFinished }}
|
||||||
|
{{- end }}
|
||||||
template:
|
template:
|
||||||
spec:
|
spec:
|
||||||
initContainers:
|
initContainers:
|
||||||
|
|||||||
@ -1139,3 +1139,11 @@ pulsar_manager:
|
|||||||
admin:
|
admin:
|
||||||
user: pulsar
|
user: pulsar
|
||||||
password: pulsar
|
password: pulsar
|
||||||
|
|
||||||
|
# These are jobs where job ttl configuration is used
|
||||||
|
# pulsar-helm-chart/charts/pulsar/templates/pulsar-cluster-initialize.yaml
|
||||||
|
# pulsar-helm-chart/charts/pulsar/templates/bookkeeper-cluster-initialize.yaml
|
||||||
|
job:
|
||||||
|
ttl:
|
||||||
|
enabled: false
|
||||||
|
secondsAfterFinished: 3600
|
||||||
Loading…
x
Reference in New Issue
Block a user