-
Notifications
You must be signed in to change notification settings - Fork 22
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
KUBESAW-12: Convert the health-check goroutine into ToolchainCluster controller #386
Conversation
…controller Signed-off-by: Feny Mehta <[email protected]>
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #386 +/- ##
=========================================
Coverage ? 77.98%
=========================================
Files ? 47
Lines ? 1958
Branches ? 0
=========================================
Hits ? 1527
Misses ? 373
Partials ? 58
|
Signed-off-by: Feny Mehta <[email protected]>
Signed-off-by: Feny Mehta <[email protected]>
Signed-off-by: Feny Mehta <[email protected]>
There was a problem hiding this 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 😄
controllers/toolchainclusterhealth/toolchaincluster_healthcheck_controller.go
Outdated
Show resolved
Hide resolved
controllers/toolchainclusterhealth/toolchaincluster_healthcheck_controller_test.go
Outdated
Show resolved
Hide resolved
controllers/toolchainclusterhealth/toolchaincluster_healthcheck_controller_test.go
Outdated
Show resolved
Hide resolved
There was a problem hiding this 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.
controllers/toolchainclusterhealth/toolchaincluster_healthcheck_controller.go
Outdated
Show resolved
Hide resolved
Signed-off-by: Feny Mehta <[email protected]>
Signed-off-by: Feny Mehta <[email protected]>
Signed-off-by: Feny Mehta <[email protected]>
controllers/toolchainclusterhealth/toolchaincluster_healthcheck_controller_test.go
Outdated
Show resolved
Hide resolved
controllers/toolchainclusterhealth/toolchaincluster_healthcheck_controller.go
Outdated
Show resolved
Hide resolved
Signed-off-by: Feny Mehta <[email protected]>
Signed-off-by: Feny Mehta <[email protected]>
There was a problem hiding this 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
controllers/toolchaincluster/toolchaincluster_controller_test.go
Outdated
Show resolved
Hide resolved
controllers/toolchaincluster/toolchaincluster_controller_test.go
Outdated
Show resolved
Hide resolved
tests := map[string]struct { | ||
tctype string | ||
apiendpoint string | ||
clusterconditions []toolchainv1alpha1.ToolchainClusterCondition | ||
status toolchainv1alpha1.ToolchainClusterStatus | ||
}{ |
There was a problem hiding this comment.
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 👍 🥇
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
Signed-off-by: Feny Mehta <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
There was a problem hiding this 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 !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good Job 👍
controllers/toolchaincluster/toolchaincluster_controller_test.go
Outdated
Show resolved
Hide resolved
controllers/toolchaincluster/toolchaincluster_controller_test.go
Outdated
Show resolved
Hide resolved
controllers/toolchaincluster/toolchaincluster_controller_test.go
Outdated
Show resolved
Hide resolved
Signed-off-by: Feny Mehta <[email protected]>
Quality Gate passedIssues Measures |
This is to convert the health-check goroutine into ToolchainCluster controller
The related PRs:
The Other PRs where only Toolchain common dependency is updated