This is an automated email from the ASF dual-hosted git repository.
xddeng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/master by this push:
new b8cf46a More proper default value for namespace in K8S cleanup-pods
CLI (#15060)
b8cf46a is described below
commit b8cf46a12fba5701d9ffc0b31aac8375fbca37f9
Author: Xiaodong DENG <[email protected]>
AuthorDate: Mon Mar 29 00:00:15 2021 +0200
More proper default value for namespace in K8S cleanup-pods CLI (#15060)
Currently the default value for namespace is always 'default'.
However, `conf.get('kubernetes', 'namespace')` may be a more proper
default value for namespace in this case
---
airflow/cli/cli_parser.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/airflow/cli/cli_parser.py b/airflow/cli/cli_parser.py
index e921098..c77d2e7 100644
--- a/airflow/cli/cli_parser.py
+++ b/airflow/cli/cli_parser.py
@@ -684,8 +684,8 @@ ARG_OPTION = Arg(
# kubernetes cleanup-pods
ARG_NAMESPACE = Arg(
("--namespace",),
- default='default',
- help="Kubernetes Namespace",
+ default=conf.get('kubernetes', 'namespace'),
+ help="Kubernetes Namespace. Default value is `[kubernetes] namespace` in
configuration.",
)
# jobs check