functicons commented on issue #34644:
URL: https://github.com/apache/airflow/issues/34644#issuecomment-1815745403

   I created a BashOperator which prints the kube config in the composer env. 
It actually has `current-context`. So it is not really a problem with the kube 
config itself, but somehow the config was not used correctly in async mode.
   
   ```
   from datetime import datetime
   from airflow import DAG
   from airflow.operators.bash import BashOperator
   
   
   dag = DAG('print_kube_config', description='Print Kube Config', 
schedule_interval='@once', start_date=datetime(2023, 8, 17))
   
   bash_operator = BashOperator(task_id='print_kube_config_task', 
bash_command='cat /home/airflow/composer_kube_config', dag=dag)
   
   bash_operator
   ```


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to