You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "n-badtke-cg (via GitHub)" <gi...@apache.org> on 2026/04/28 09:48:40 UTC
[I] Helm Chart logGroomerSidecar retentionDays (and retentionMinutes) set to the number 0 are getting ignored [airflow]
n-badtke-cg opened a new issue, #66011:
URL: https://github.com/apache/airflow/issues/66011
### Under which category would you file this issue?
Helm chart
### Apache Airflow version
3.2.1
### What happened and how to reproduce it?
I configured the logGroomer with:
```yaml
retentionDays: 0
retentionMinutes: 60
```
But the log grommer only gets the ENV `AIRFLOW__LOG_RETENTION_MINUTES=60`; `AIRFLOW__LOG_RETENTION_DAYS` is unset.
### What you think should happen instead?
The value of numeric 0 should be propagated.
### Operating System
Debian GNU/Linux 12 (bookworm)
### Deployment
Official Apache Airflow Helm Chart
### Apache Airflow Provider(s)
_No response_
### Versions of Apache Airflow Providers
irrelevant
### Official Helm Chart version
1.21.0 (latest released)
### Kubernetes Version
1.33
### Helm Chart configuration
```yaml
workers:
celery:
logGroomerSidecar:
retentionDays: 0
retentionMinutes: 60
triggerer:
logGroomerSidecar:
retentionDays: 0
retentionMinutes: 60
```
### Docker Image customizations
not applicable
### Anything else?
The reason for this behavior is due to how go-template handles if statements:
```yaml
{{ if .Values.triggerer.logGroomerSidecar.retentionDays }}
# false if the value is empty. The empty values are boolean false, numeric 0, any nil pointer or interface value, and any array, slice, map, or string of length zero. See https://pkg.go.dev/text/template#hdr-Actions
# This means if .Values.triggerer.logGroomerSidecar.retentionDays is set to numeric 0, the if statement resolves in false.
{{ end }}
```
### Are you willing to submit PR?
- [x] Yes I am willing to submit a PR!
### Code of Conduct
- [x] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Helm Chart logGroomerSidecar retentionDays (and retentionMinutes) set to the number 0 are getting ignored [airflow]
Posted by "jscheffl (via GitHub)" <gi...@apache.org>.
jscheffl closed issue #66011: Helm Chart logGroomerSidecar retentionDays (and retentionMinutes) set to the number 0 are getting ignored
URL: https://github.com/apache/airflow/issues/66011
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org