kor
kor copied to clipboard
Add support for setting kubecontext
What this PR does / why we need it?
"In the current version, the GetKubeClient function is designed to operate with an externally set context.
When using a kube-config containing multiple cluster configurations, the context must be set outside this utility.
This PR allows passing the kube-context directly, similar to how it’s specified when using tools like kubectl or helm."
PR Checklist
- [ ] This PR adds K8s exceptions (false positives)
- [x] This PR adds new code
- [ ] This PR includes tests for new/existing code
- [ ] This PR adds docs
GitHub Issue
Closes [XX-XX]
Notes for your reviewers
@nikhilsbhat do you have the time to complete this?
@yonahd, Oops! I completely missed this amid other tasks. I'll check it out this week.