luoyuliuyin opened a new pull request, #39249:
URL: https://github.com/apache/airflow/pull/39249

   **PR of `Use kubeconfig as one of the optional parameters for creating 
KubernetesHook` https://github.com/apache/airflow/issues/39227**
   
   When we use `KubernetesPodOperator`, we need to create `KubernetesHook` in 
order to connect to Kubernetes services. There are currently 3 supported 
methods for creating `KubernetesHook`:
   1、environment variable method,
   2、kubeconfig_path method,
   3、db connection variable method.
   
![image](https://github.com/apache/airflow/assets/28948186/b0290ae3-ae54-460b-8ac2-f053a982d7fd)
   
   
   However, these methods are all from the perspective of the airflow system 
owner. The airflow owner can change the variables of the airflow_worker, create 
and modify files in the airflow_worker, and operate the airflow_db. However, in 
many cases, the users of airflow are not The owner of airflow, The user does 
not have the authority to make changes to the airflow_worker, nor does it have 
read and write permissions to the db, nor should it see the data stored in the 
db by other users.
   
   Therefore, it is best for users to manage their own data rather than hosting 
it on the airflow system, in this case, it is a relatively reasonable choice to 
add an optional parameter to receive the kubeconfig text.
   
   


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