fix: removed code duplication in KubeConfigUpdate. Added tests#309
fix: removed code duplication in KubeConfigUpdate. Added tests#309adietish wants to merge 1 commit into
Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Enterprise Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
📝 WalkthroughWalkthroughKubeConfigUpdate centralizes kubeconfig mutation by adding shared base methods to build contexts with unique naming. CreateContext and CreateContextWithClientCert are refactored to eliminate duplicated logic and use the new applyNewContext flow. Token and client-certificate authentication are both supported through this unified path. New tests cover client certificate context creation and unique user naming. ChangesKubeconfig context creation refactoring
🎯 3 (Moderate) | ⏱️ ~20 minutes 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #309 +/- ##
==========================================
+ Coverage 0.00% 22.60% +22.60%
==========================================
Files 4 99 +95
Lines 26 4176 +4150
Branches 0 770 +770
==========================================
+ Hits 0 944 +944
- Misses 26 3109 +3083
- Partials 0 123 +123 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
f537e83 to
55a65c7
Compare
Signed-off-by: Andre Dietisheim <adietish@redhat.com>
55a65c7 to
e8f5ad7
Compare
No description provided.