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

KUBESAW-12: Convert the health-check goroutine into ToolchainCluster controller #386

Merged
merged 16 commits into from
Apr 22, 2024

Conversation

fbm3307
Copy link
Contributor

@fbm3307 fbm3307 commented Apr 10, 2024

Copy link

codecov bot commented Apr 10, 2024

Codecov Report

❗ No coverage uploaded for pull request base (master@d0cc930). Click here to learn what that means.
The diff coverage is 63.63%.

Additional details and impacted files
@@            Coverage Diff            @@
##             master     #386   +/-   ##
=========================================
  Coverage          ?   77.98%           
=========================================
  Files             ?       47           
  Lines             ?     1958           
  Branches          ?        0           
=========================================
  Hits              ?     1527           
  Misses            ?      373           
  Partials          ?       58           
Files Coverage Δ
controllers/toolchaincluster/healthchecker.go 93.10% <ø> (ø)
...rs/toolchaincluster/toolchaincluster_controller.go 63.63% <63.63%> (ø)

Signed-off-by: Feny Mehta <[email protected]>
@fbm3307 fbm3307 marked this pull request as ready for review April 11, 2024 06:43
Copy link
Contributor

@filariow filariow left a comment

Choose a reason for hiding this comment

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

nice PR, a few nits and personal preference 😄

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.

Nice job! Looks good 👍

I have one question for the controller.

I'll take a look at the tests later since I see you are still working on those.

fbm3307 added 3 commits April 17, 2024 15:48
Signed-off-by: Feny Mehta <[email protected]>
Signed-off-by: Feny Mehta <[email protected]>
@fbm3307 fbm3307 requested review from mfrancisc and filariow April 17, 2024 13:21
fbm3307 added 2 commits April 18, 2024 16:07
Signed-off-by: Feny Mehta <[email protected]>
Signed-off-by: Feny Mehta <[email protected]>
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.

Good stuff overall 👍
Just a few cosmetic/minor changes

Comment on lines +41 to +46
tests := map[string]struct {
tctype string
apiendpoint string
clusterconditions []toolchainv1alpha1.ToolchainClusterCondition
status toolchainv1alpha1.ToolchainClusterStatus
}{
Copy link
Contributor

Choose a reason for hiding this comment

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

I like this way you improved the unit test 👍 🥇

Copy link
Contributor

Choose a reason for hiding this comment

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

+1

controllers/toolchaincluster/healthchecker_test.go Outdated Show resolved Hide resolved
Signed-off-by: Feny Mehta <[email protected]>
Copy link
Contributor

@rajivnathan rajivnathan left a comment

Choose a reason for hiding this comment

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

Nice!

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.

Nice Job 🏅

Thanks for the additional tests and improvements !

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.

Good Job 👍

Copy link

Quality Gate Passed Quality Gate passed

Issues
4 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
7.8% Duplication on New Code

See analysis details on SonarCloud

@fbm3307 fbm3307 requested a review from filariow April 22, 2024 06:16
@fbm3307 fbm3307 merged commit e6d41ea into codeready-toolchain:master Apr 22, 2024
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.

5 participants