-
Notifications
You must be signed in to change notification settings - Fork 117
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
Add Consumer reconciler for scheduling and scaling #1601
Add Consumer reconciler for scheduling and scaling #1601
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1601 +/- ##
============================================
- Coverage 72.63% 66.09% -6.55%
- Complexity 600 606 +6
============================================
Files 122 128 +6
Lines 4586 5220 +634
Branches 174 176 +2
============================================
+ Hits 3331 3450 +119
- Misses 979 1484 +505
- Partials 276 286 +10
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
0f05994
to
fed104c
Compare
b24bf38
to
b2d6ea5
Compare
control-plane/pkg/apis/internals/kafka/eventing/v1alpha1/consumer_types.go
Outdated
Show resolved
Hide resolved
12a6fd3
to
0e9a8be
Compare
I had to rebase this PR. |
return idx | ||
} | ||
|
||
func (r Reconciler) schedule(ctx context.Context, logger *zap.Logger, c *kafkainternals.Consumer, mutatorFunc contractMutatorFunc) (bool, error) { |
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.
Can you explain what the schedule
function does in terms of figuring out placements here? At this point, the consumer is already scheduled right? Maybe some more comments here might help as in what is the update to the config map being done, etc?
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'll add comment, maybe schedule
as the name isn't the best one.
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.
Does this help?
// schedule mutates the ConfigMap associated with the pod specified by Consumer.Spec.PodBind.
//
// The actual mutation is done by calling the provided contractMutatorFunc.
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.
It does. Great. Think the function being called schedule
made it a bit confusing without a comment
Signed-off-by: Pierangelo Di Pilato <pdipilat@redhat.com>
Signed-off-by: Pierangelo Di Pilato <pdipilat@redhat.com>
0e9a8be
to
9693e7f
Compare
Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
The following is the coverage report on the affected files.
|
/retest |
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
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: aavarghese, pierDipi The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Part of #1537
Proposed Changes
Release Note
Docs
Note: