Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions