You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Rafael (Jira)" <ji...@apache.org> on 2019/08/23 09:26:00 UTC

[jira] [Created] (AIRFLOW-5293) Wrong documentation for kubernetes_secrets config session

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)