vsimon opened a new issue #19802:
URL: https://github.com/apache/airflow/issues/19802
### Official Helm Chart version
1.3.0 (latest released)
### Apache Airflow version
2.2.1
### Kubernetes Version
v1.21.1
### Helm Chart configuration
executor: KubernetesExecutor
redis:
enabled: false
statsd:
enabled: false
postgresql:
persistence:
enabled: false
### Docker Image customisations
_No response_
### What happened
When running `helm upgrade...` the `airflow-run-airflow-migrations` job runs
however the `airflow-create-user` does not run. I'm wondering what the
difference in the two jobs where one would run and not the other for helm
upgrade. They have identical hook annotations.
### What you expected to happen
Like 'airflow-run-airflow-migrations', the `airflow-create-user` job runs.
### How to reproduce
```
$ kubectl create ns airflow-temp
$ helm install airflow apache-airflow/airflow --namespace airflow-temp --set
executor=KubernetesExecutor,redis.enabled=false,statsd.enabled=false,postgresql.persistence.enabled=false
# notice both `airflow-run-airflow-migrations` and `airflow-create-user`
jobs run - look
$ kubectl get jobs -n airflow-temp -w
NAME COMPLETIONS DURATION AGE
airflow-run-airflow-migrations 0/1 0s
airflow-run-airflow-migrations 0/1 0s 0s
airflow-run-airflow-migrations 1/1 30s 30s
airflow-create-user 0/1 0s
airflow-create-user 0/1 0s 0s
airflow-create-user 1/1 17s 17s
airflow-run-airflow-migrations 1/1 30s 50s
airflow-create-user 1/1 17s 18s
$ helm upgrade airflow apache-airflow/airflow --namespace airflow-temp --set
executor=KubernetesExecutor,redis.enabled=false,statsd.enabled=false,postgresql.persistence.enabled=false
# notice only `airflow-run-airflow-migrations` job runs
$ kubectl get jobs -n airflow-temp -w
NAME COMPLETIONS DURATION AGE
airflow-run-airflow-migrations 0/1 0s
airflow-run-airflow-migrations 0/1 1s 1s
airflow-run-airflow-migrations 0/1 0s 1s
airflow-run-airflow-migrations 1/1 23s 24s
airflow-run-airflow-migrations 1/1 23s 24s
```
### Anything else
helm version
version.BuildInfo{Version:"v3.7.1",
GitCommit:"1d11fcb5d3f3bf00dbe6fe31b8412839a96b3dc4", GitTreeState:"clean",
GoVersion:"go1.17.2"}
### Are you willing to submit PR?
- [ ] 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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]