JungraeKim created AIRFLOW-6067:
-----------------------------------

             Summary: [Airflow] pod_runtime_info_envs doesn't apply 
PodRuntimeInfoEnv class
                 Key: AIRFLOW-6067
                 URL: https://issues.apache.org/jira/browse/AIRFLOW-6067
             Project: Apache Airflow
          Issue Type: Bug
          Components: operators
    Affects Versions: 1.10.6
         Environment: Airflow 10.x
Python 2.x, 3.x
            Reporter: JungraeKim
            Assignee: JungraeKim


When using KubernetesPodOperator, *pod_runtime_info_envs* doesn't work properly.

 

There are two way to solve it.

 
 # Using PodRuntimeInfoEnv class like _set_resources
 # Use runtime_info["key"] not runtime_info.key

 

Right now, you can resolve this issue by class converted from dict like below 
code.

{code:python}
class AttrDict(dict):
    def __init__(self, *args, **kwargs):
        super(AttrDict, self).__init__(*args, **kwargs)
        self.__dict__ = self
{code}




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to