-
Notifications
You must be signed in to change notification settings - Fork 14
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
fix status check #117
fix status check #117
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #117 +/- ##
==========================================
+ Coverage 69.27% 69.91% +0.64%
==========================================
Files 15 15
Lines 1087 1057 -30
==========================================
- Hits 753 739 -14
+ Misses 288 273 -15
+ Partials 46 45 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
@@ -112,7 +112,7 @@ func (r *LimitadorReconciler) checkLimitadorAvailable(ctx context.Context, limit | |||
deployment := &appsv1.Deployment{} | |||
dKey := client.ObjectKey{ // Its deployment is built after the same name and namespace | |||
Namespace: limitadorObj.Namespace, | |||
Name: limitadorObj.Name, |
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.
This PR was originated only to fix this one line.
var httpPortNumber int32 = 8000 | ||
var grpcPortNumber int32 = 8001 |
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.
One trick that used in the past is to apply an offset to the default ports e.g limitadorv1alpha1.DefaultServiceHTTPPort + 100
… but not asking to change anything. Just sharing.
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.
yeah, that's better, because you make sure you do not conflict with the default one. Let me update that.
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.
LGTM (famous last words 😉)
Thanks for the refactoring!
And… I jinxed it! |
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.
🙏
What
Two main issues found:
ready
state.Few minor issues found:
AfterEach
and test isolation is broken as the next test reads leftover resources of the previous tests.Thus, things done:
Ready
in the tests.