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

Remove the migration step to kubeconfig #426

Merged

Conversation

metlos
Copy link
Contributor

@metlos metlos commented Aug 26, 2024

Remove the migration step to kubeconfig and update the tests to not test for the legacy fields in ToolchainCluster.

This a follow-up of #412 that updates the testsuite to not rely on the legacy fields that defined the connection settings for the clusters.

This is safe to do, because all of our clusters have already been upgraded and have the kubeconfigs generated in the connection secrets.

Related PRs:

Copy link

codecov bot commented Aug 26, 2024

Codecov Report

Attention: Patch coverage is 3.03030% with 32 lines in your changes missing coverage. Please review.

Project coverage is 77.35%. Comparing base (8833ded) to head (68405c1).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
pkg/test/cluster.go 0.00% 32 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #426      +/-   ##
==========================================
- Coverage   78.57%   77.35%   -1.23%     
==========================================
  Files          49       49              
  Lines        2054     2009      -45     
==========================================
- Hits         1614     1554      -60     
- Misses        379      401      +22     
+ Partials       61       54       -7     
Files with missing lines Coverage Δ
...rs/toolchaincluster/toolchaincluster_controller.go 87.14% <ø> (+3.95%) ⬆️
pkg/cluster/service.go 80.83% <100.00%> (-2.39%) ⬇️
pkg/test/cluster.go 0.00% <0.00%> (ø)

Copy link
Contributor

@mfrancisc mfrancisc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 👍

I have left only few minor comments.

pkg/cluster/service.go Outdated Show resolved Hide resolved
pkg/test/verify/cluster.go Outdated Show resolved Hide resolved
Copy link
Contributor

@MatousJobanek MatousJobanek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good from my side, but please address @mfrancisc's comments

pkg/test/verify/cluster.go Outdated Show resolved Hide resolved
Copy link
Contributor

@fbm3307 fbm3307 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks Good .
Just a Minor question

pkg/cluster/service_test.go Outdated Show resolved Hide resolved
Copy link

sonarcloud bot commented Sep 5, 2024

@metlos metlos merged commit d55d86f into codeready-toolchain:master Sep 5, 2024
5 of 8 checks passed
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.

4 participants