kor icon indicating copy to clipboard operation
kor copied to clipboard

Add support for setting kubecontext

Open nikhilsbhat opened this issue 1 year ago • 2 comments

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 avatar Nov 07 '24 05:11 nikhilsbhat

@nikhilsbhat do you have the time to complete this?

yonahd avatar Feb 02 '25 11:02 yonahd

@yonahd, Oops! I completely missed this amid other tasks. I'll check it out this week.

nikhilsbhat avatar Feb 02 '25 12:02 nikhilsbhat