Skip to content

Allow defining ttlSecondsAfterFinished in databaseCleanup cleanup job through helm chart installation #64152

@fbmatilla

Description

@fbmatilla

Description

We want to be able to define the ttlSecondsAfterFinished value in the values.yml when deployin Airflow Helm Chart. This is already permitted in createUserJob and migrateDatabaseJob.

Use case/motivation

In the file airflow/chart/templates/database-cleanup
/database-cleanup-cronjob.yaml

a new piece of code like:

spec:
.....
jobTemplate:
spec:
{{- if not (kindIs "invalid" .Values.databaseCleanup.ttlSecondsAfterFinished) }}
ttlSecondsAfterFinished: {{ .Values.databaseCleanup.ttlSecondsAfterFinished }}
{{- end }}
template:
....

Related issues

New feature, not really an issue

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:helm-chartAirflow Helm Chartkind:featureFeature Requestsneeds-triagelabel for new issues that we didn't triage yet

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions