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

Don't use fields of ToolchainCluster spec #428

Merged
merged 3 commits into from
Sep 18, 2024

Conversation

metlos
Copy link
Contributor

@metlos metlos commented Sep 18, 2024

This PR prepares toolchain-common for removal of most fields from the ToolchainCluster spec. The only field that will eventually remain is the secret reference. All the rest of the fields have either been moved to the status of the ToolchainCluster already or are part of the kubeconfig that is stored in the referenced secret.

NOTE: that this PR does NOT update the dependency to the API. That is to avoid breakage during the relatively long time it will take to update all the components with the necessary changes. Once we merge this PR, I will create a number of additional PRs in the rest of the components that will use the new version of toolchain-common and make necessary updates in the components to not use the outdated fields of ToolchainCluster. Only once those PRs are merged, we can go ahead and merge the PR to remove the fields from the API, followed by another set of PRs to update toolchain-common and subsequenlty all the other components to that new version.

Doing it this way will ensure that any changes that happen in api and/or toolchain-common in the meantime will not be affected by the breaking change.

Copy link

sonarcloud bot commented Sep 18, 2024

Copy link

codecov bot commented Sep 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.47%. Comparing base (38ba816) to head (0d27ea5).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #428      +/-   ##
==========================================
+ Coverage   77.36%   77.47%   +0.11%     
==========================================
  Files          49       49              
  Lines        2010     2007       -3     
==========================================
  Hits         1555     1555              
+ Misses        401      398       -3     
  Partials       54       54              
Files with missing lines Coverage Δ
pkg/test/cluster.go 0.00% <ø> (ø)

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.

thanks for the detailed explanation, but this is only a change in the test package, so you could easily go ahead and remove it from the api repo.
Or do you think that there is gonna be more places where we rely on the fields in host/member/e2e/reg-service repos?

@metlos
Copy link
Contributor Author

metlos commented Sep 18, 2024

That's a good point. There is a number of places in e2e and ksctl, but host operator, member operator and registration service don't see any changes but the update in versions and CRD yamls. I will take a look at how the "PR train" could be simplified.

@metlos metlos merged commit f768864 into codeready-toolchain:master Sep 18, 2024
8 checks passed
@MatousJobanek
Copy link
Contributor

Yeah, in this case, I wouldn't be worried so much.
Feel free to drop it from the api right away and propagate the change through the set of PRs without any extra intermediate steps. 👍

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