Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for setting kubecontext #377

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nikhilsbhat
Copy link

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)
  • 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

Initially GetKubeClient was working if the context was set externally
This change lets one pass the context while running the utility locally
@yonahd
Copy link
Owner

yonahd commented Feb 2, 2025

@nikhilsbhat do you have the time to complete this?

@nikhilsbhat
Copy link
Author

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

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