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

ConsumerGroup reconciler #1562

Conversation

pierDipi
Copy link
Member

@pierDipi pierDipi commented Dec 1, 2021

Part of #1537

Proposed Changes

  • Add ConsumerGroup reconciler

Release Note

None

Docs

None

TODO: reconciler tests (follow-up PR)

@google-cla google-cla bot added the cla: yes Indicates the PR's author has signed the CLA. label Dec 1, 2021
@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: 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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow-robot knative-prow-robot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. approved Indicates a PR has been approved by an approver from all required OWNERS files. area/control-plane labels Dec 1, 2021
@devguyio
Copy link
Contributor

devguyio commented Dec 1, 2021

/assign

Signed-off-by: Pierangelo Di Pilato <pdipilat@redhat.com>
@pierDipi pierDipi force-pushed the SRVKE-1061_ConsumerGroup-reconciler branch from acca8f1 to a867e2d Compare December 1, 2021 16:20
@codecov
Copy link

codecov bot commented Dec 1, 2021

Codecov Report

Merging #1562 (22319b5) into main (e956d93) will decrease coverage by 0.74%.
The diff coverage is 67.85%.

Impacted file tree graph

@@             Coverage Diff              @@
##               main    #1562      +/-   ##
============================================
- Coverage     75.37%   74.63%   -0.75%     
  Complexity      592      592              
============================================
  Files           106      116      +10     
  Lines          4167     4207      +40     
  Branches        170      170              
============================================
- Hits           3141     3140       -1     
- Misses          766      809      +43     
+ Partials        260      258       -2     
Flag Coverage Δ
java-unittests 82.06% <ø> (+0.05%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...afka/eventing/v1alpha1/consumer_group_lifecycle.go 0.00% <0.00%> (ø)
...ls/kafka/eventing/v1alpha1/consumer_group_types.go 0.00% <0.00%> (ø)
...nternals/kafka/eventing/v1alpha1/consumer_types.go 0.00% <0.00%> (ø)
...apis/internals/kafka/eventing/v1alpha1/register.go 0.00% <ø> (ø)
...rnals/kafka/eventing/v1alpha1/consumer_defaults.go 100.00% <100.00%> (ø)
...kafka/eventing/v1alpha1/consumer_group_defaults.go 100.00% <100.00%> (ø)
...fka/eventing/v1alpha1/consumer_group_validation.go 100.00% <100.00%> (ø)
...als/kafka/eventing/v1alpha1/consumer_validation.go 100.00% <100.00%> (ø)
control-plane/pkg/reconciler/kafka/topic.go 80.68% <0.00%> (-12.74%) ⬇️
control-plane/pkg/reconciler/broker/broker.go 66.85% <0.00%> (-5.75%) ⬇️
... and 8 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e956d93...22319b5. Read the comment docs.

Signed-off-by: Pierangelo Di Pilato <pdipilat@redhat.com>
Signed-off-by: Pierangelo Di Pilato <pdipilat@redhat.com>
return existingConsumers[i].IsLessThan(existingConsumers[j])
})

nConsumers := int32(len(existingConsumers))
Copy link
Contributor

Choose a reason for hiding this comment

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

Changes look good.
Q: Will the scheduling of cg.Spec.Replicas and descheduling of nConsumers-*cg.Spec.Replicas be done in a separate PR?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, scheduling will be done in a separate PR

@pierDipi
Copy link
Member Author

pierDipi commented Dec 7, 2021

Friendly ping @devguyio

@devguyio
Copy link
Contributor

devguyio commented Dec 9, 2021

/lgtm

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Dec 9, 2021
@knative-prow-robot
Copy link
Contributor

knative-prow-robot commented Dec 9, 2021

@pierDipi: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-knative-sandbox-eventing-kafka-broker-go-coverage 22319b5 link false /test pull-knative-sandbox-eventing-kafka-broker-go-coverage

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@knative-prow-robot knative-prow-robot merged commit d6d574f into knative-extensions:main Dec 9, 2021
@pierDipi pierDipi deleted the SRVKE-1061_ConsumerGroup-reconciler branch December 10, 2021 23:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/control-plane cla: yes Indicates the PR's author has signed the CLA. lgtm Indicates that a PR is ready to be merged. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants