Skip to content

Conversation

@awdavidson
Copy link
Contributor

@awdavidson awdavidson commented Nov 30, 2024

The cluster_context passed into AsyncKubernetesHook is not passed through when load_kube_config_from_dict is called. This causes failures if you are running a KubernetesPodOperator task with deferrable=True and a cluster context that’s different to the default.

Ensuring the cluster_context is passed into the load_kube_config_from_dict method ensures the correct context is used for API calls


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

@boring-cyborg boring-cyborg bot added area:providers provider:cncf-kubernetes Kubernetes (k8s) provider related issues labels Nov 30, 2024
@awdavidson awdavidson marked this pull request as ready for review November 30, 2024 22:02
@awdavidson awdavidson force-pushed the k8s-hook-load-config branch from 6bde0cc to 66d79bb Compare December 2, 2024 12:32
@eladkal eladkal force-pushed the k8s-hook-load-config branch from 66d79bb to 150f2a4 Compare December 14, 2024 07:15
Copy link
Contributor

@amoghrajesh amoghrajesh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah sounds like a good idea and something that is needed as per https://kubernetes-asyncio.readthedocs.io/en/latest/kubernetes_asyncio.config.kube_config.html#kubernetes_asyncio.config.kube_config.load_kube_config
I would request for one more approval here as I am not an expert in this provider. @jedcunningham / @hussein-awala?

@github-actions
Copy link

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 5 days if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale Stale PRs per the .github/workflows/stale.yml policy file label Jan 30, 2025
@github-actions github-actions bot closed this Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:providers provider:cncf-kubernetes Kubernetes (k8s) provider related issues stale Stale PRs per the .github/workflows/stale.yml policy file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants