Skip to content

fix: correctly handle multi-path KUBECONFIG values#51

Merged
corka149 merged 1 commit into
pytogo:mainfrom
chenyuem:fix/kubeconfig-multipath
Dec 8, 2025
Merged

fix: correctly handle multi-path KUBECONFIG values#51
corka149 merged 1 commit into
pytogo:mainfrom
chenyuem:fix/kubeconfig-multipath

Conversation

@chenyuem

@chenyuem chenyuem commented Dec 6, 2025

Copy link
Copy Markdown
Contributor

Support colon-separated KUBECONFIG values instead of treating the env var as a single file path. The resolver now:

  • Preserves explicit config_path argument precedence
  • Iterates through multi-path KUBECONFIG entries and selects the first valid file
  • Falls back to ~/.kube/config if no env paths are valid

This prevents silent failures when KUBECONFIG contains multiple sources, which is common in modern dev and CI environments.

@corka149 corka149 self-requested a review December 6, 2025 14:39
@corka149 corka149 merged commit 69bd82a into pytogo:main Dec 8, 2025
17 checks passed
@corka149

corka149 commented Dec 8, 2025

Copy link
Copy Markdown
Contributor

Thank you @chenyuem for your contribution. I will make soon a release.

@chenyuem

chenyuem commented Dec 8, 2025

Copy link
Copy Markdown
Contributor Author

Thank you for your quick review @corka149 !

@corka149

Copy link
Copy Markdown
Contributor

Release 0.7.5 was triggered. 🥳

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants