ashb commented on PR #28008:
URL: https://github.com/apache/airflow/pull/28008#issuecomment-1332424165

   Examples
   
   Setting the old config value, and reading the config by the old name:
   ```
   root@cfccc0e5d99f:/opt/airflow# AIRFLOW__KUBERNETES__NAMESPACE=foo python -c 
$'from airflow.configuration import conf;\nprint(conf.get("kubernetes", 
"namespace"))'
   -c:2 FutureWarning: The config section [kubernetes] has been renamed to 
[kubernetes_executor]. Please update your `conf.get*` call to use the new name
   foo
   ```
   
   Setting the old value but reading the value by the new name:
   ```
   root@cfccc0e5d99f:/opt/airflow# AIRFLOW__KUBERNETES__NAMESPACE=foo python -c 
$'from airflow.configuration import 
conf;\nprint(conf.get("kubernetes_executor", "namespace"))'
   -c:2 DeprecationWarning: The namespace option in [kubernetes] has been moved 
to the namespace option in [kubernetes_executor] - the old setting has been 
used, but please update your config.
   foo
   
   ```


-- 
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]

Reply via email to