Rafael created AIRFLOW-5293:
-------------------------------
Summary: Wrong documentation for kubernetes_secrets config session
Key: AIRFLOW-5293
URL: https://issues.apache.org/jira/browse/AIRFLOW-5293
Project: Apache Airflow
Issue Type: Bug
Components: scheduler
Affects Versions: 1.10.4, 1.10.3
Reporter: Rafael
The {{[kubernetes_secrets]}} section of the configuration file says that
environment variables can be created from Kubernetes secrets as follows:
{code:}
<environment_variable_mount> =
<kubernetes_secret_object>:<kubernetes_secret_key>
{code}
However, if add the snippet {{FERNET_KEY = airflow-worker-env:fernet-key}}, the
scheduler will crash, as the code is splitting on {{=}} instead of {{:}}. See
[worker_configuration.py|https://github.com/apache/airflow/blob/16d93c9e45e14179c7822fed248743f0c3fd935c/airflow/contrib/kubernetes/worker_configuration.py#L169]
Either docs or code should be updated.
--
This message was sent by Atlassian Jira
(v8.3.2#803003)