Skip to content

CNTRLPLANE-596: Add --kubeconfig flag to HyperShift and HCP CLI - #8402

Merged
openshift-merge-bot[bot] merged 2 commits into
openshift:mainfrom
hypershift-community:fix-CNTRLPLANE-596
Jun 25, 2026
Merged

openshift-merge-bot[bot] merged 2 commits into
openshift:mainfrom
hypershift-community:fix-CNTRLPLANE-596

test(CNTRLPLANE-596): add unit tests for --kubeconfig flag coverage

9ab3ce7
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project succeeded Jun 25, 2026 in 0s

42.60% (+0.09%) compared to 7eea4bd

View this Pull Request on Codecov

42.60% (+0.09%) compared to 7eea4bd

Details

Codecov Report

❌ Patch coverage is 51.72414% with 28 lines in your changes missing coverage. Please review.
✅ Project coverage is 42.60%. Comparing base (7eea4bd) to head (9ab3ce7).
⚠️ Report is 13 commits behind head on main.

Files with missing lines Patch % Lines
cmd/cluster/core/create.go 9.09% 10 Missing ⚠️
cmd/cluster/aws/destroy.go 41.66% 7 Missing ⚠️
cmd/util/client.go 82.35% 2 Missing and 1 partial ⚠️
cmd/cluster/aws/create.go 60.00% 1 Missing and 1 partial ⚠️
cmd/cluster/agent/create.go 0.00% 1 Missing ⚠️
cmd/cluster/cluster.go 0.00% 1 Missing ⚠️
cmd/cluster/kubevirt/create.go 0.00% 1 Missing ⚠️
cmd/cluster/none/create.go 0.00% 1 Missing ⚠️
product-cli/cmd/cluster/aws/destroy.go 0.00% 1 Missing ⚠️
support/util/util.go 80.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8402      +/-   ##
==========================================
+ Coverage   42.50%   42.60%   +0.09%     
==========================================
  Files         768      768              
  Lines       95272    95322      +50     
==========================================
+ Hits        40498    40609     +111     
+ Misses      51971    51903      -68     
- Partials     2803     2810       +7     
Files with missing lines Coverage Δ
cmd/cluster/core/destroy.go 12.10% <100.00%> (+3.18%) ⬆️
product-cli/cmd/cluster/cluster.go 100.00% <100.00%> (ø)
cmd/cluster/agent/create.go 58.58% <0.00%> (ø)
cmd/cluster/cluster.go 0.00% <0.00%> (ø)
cmd/cluster/kubevirt/create.go 54.20% <0.00%> (ø)
cmd/cluster/none/create.go 54.54% <0.00%> (ø)
product-cli/cmd/cluster/aws/destroy.go 68.75% <0.00%> (ø)
support/util/util.go 42.04% <80.00%> (+2.33%) ⬆️
cmd/cluster/aws/create.go 41.59% <60.00%> (ø)
cmd/util/client.go 48.21% <82.35%> (+48.21%) ⬆️
... and 2 more

... and 3 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.