Skip to content

Conversation

@thesuperzapper
Copy link
Member

@thesuperzapper thesuperzapper commented May 20, 2022

What issues does your PR fix?

What does your PR do?

  • Fixes support for logs.path being under a custom airflow.extraVolumeMounts by detecting when this happens and disabling the emptyDir Volume mounted at logs.path (originally broken by feat: add log-cleanup sidecar to scheduler/worker #554)
  • Prevent using airflow.extraVolumeMounts for logs at the same time as log-cleanup. This is for the same reasons as with logs.persistence, namely that multiple pods would fight over deleting, but mostly because auto-deleting logs is usually not what the user wants if they enable persistence.
  • Added "Option 3 - Pod Volumes" to the "How to persist airflow logs?" FAQ page

Checklist

For all Pull Requests

For releasing ONLY

@thesuperzapper thesuperzapper changed the title feat: allow extraVolumeMounts for logs feat: allow using extraVolumeMounts for logs May 20, 2022
@thesuperzapper thesuperzapper added the status/ready-to-merge status - this will be merged into next release label May 20, 2022
@thesuperzapper thesuperzapper added this to the airflow-8.6.1 milestone May 20, 2022
@thesuperzapper thesuperzapper force-pushed the allow-extra-volume-mounts-for-logs branch from 14eabe1 to 1a29392 Compare May 20, 2022 12:20
@thesuperzapper thesuperzapper force-pushed the allow-extra-volume-mounts-for-logs branch from 1a29392 to a476726 Compare June 21, 2022 13:42
@thesuperzapper thesuperzapper changed the title feat: allow using extraVolumeMounts for logs feat: allow using extraVolumeMounts for log storage Jun 21, 2022
@thesuperzapper thesuperzapper merged commit 726af25 into airflow-helm:main Jun 22, 2022
@thesuperzapper thesuperzapper deleted the allow-extra-volume-mounts-for-logs branch June 22, 2022 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status/ready-to-merge status - this will be merged into next release

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

new emptyDir logs volume breaks using airflow.extraVolumeMounts to store logs

1 participant