Skip to content

Conversation

@fritz-astronomer
Copy link
Contributor

Adds a test_connection method (which could be utilized by #47082 )

Should be the equivalent of kubectl cluster-info, which is the lightest-weight way that I know of to test a connection.

If others have better ideas for testing that a k8s cluster is reachable, that optimally requires little to no specific privileges on the cluster, please add a comment!

@boring-cyborg boring-cyborg bot added area:providers provider:cncf-kubernetes Kubernetes (k8s) provider related issues labels Mar 17, 2025
@fritz-astronomer fritz-astronomer marked this pull request as ready for review April 24, 2025 19:00
@fritz-astronomer
Copy link
Contributor Author

@hussein-awala @jedcunningham (maybe @dimberman?) - any notes?

@jscheffl
Copy link
Contributor

Looks good for me. LGTM!

@jscheffl jscheffl merged commit 0dd933e into apache:main May 11, 2025
76 checks passed
sanederchik pushed a commit to sanederchik/airflow that referenced this pull request Jun 7, 2025
* feat: add test_connection method to k8s hook

* fix: update KubeHook to use kubernetes_conn_id

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants