I'm using Google Composer however due to the fact that I'm trying to create a dynamically created DAG, I'm unable to use the managed web server [1]. So in the end I need to add a plugins because I need to access the Airflow Webserver using REST API, so I install the following plugins, because the experimental REST API is not sufficient for my case [2]:
My managed Airflow Webserver was able to pick up changes when I updated my plugins. However my self managed Airflow Webserver was unable to pick up the changes.
I understand that I need to restart my Airflow Webserver, however it seems like my pods are not got restarted after I perform this command:
kubectl get deploy airflow-webserver -o yaml | kubectl replace --force -f -
For your reference my deployment.yaml can be seen if you're doing the steps mentioned in [3].
Restarting the pods by using kubectl patch for certain unused environment variable also seems to be not working.
[1] Dynamically Creating DAG based on Row available on DB Connection
[2] https://github.com/apache/airflow/blob/master/docs/api.rst
[3] https://cloud.google.com/composer/docs/how-to/managing/deploy-webserver