[ 
https://issues.apache.org/jira/browse/AIRFLOW-6067?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16982203#comment-16982203
 ] 

ASF GitHub Bot commented on AIRFLOW-6067:
-----------------------------------------

tyg03485 commented on pull request #6663: [AIRFLOW-6067] Add 
_set_pod_runtime_info_envs function for applying PodRuntimeInfoEnv class
URL: https://github.com/apache/airflow/pull/6663
 
 
   
 
----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> [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
>            Priority: Major
>
> 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