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

KafkaChannel Reconciler for ConsumerGroup scaling #1618

Conversation

aavarghese
Copy link
Contributor

Signed-off-by: aavarghese avarghese@us.ibm.com

Part of #1537 (channelv2_test.go coming soon)

Proposed Changes

  • Adding new KafkaChannel reconciler to create ConsumerGroup resources

Release Note


Docs

@knative-prow-robot knative-prow-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. area/control-plane labels Dec 15, 2021
@codecov
Copy link

codecov bot commented Dec 15, 2021

Codecov Report

Merging #1618 (f59cd99) into main (8704980) will decrease coverage by 3.07%.
The diff coverage is 9.91%.

Impacted file tree graph

@@             Coverage Diff              @@
##               main    #1618      +/-   ##
============================================
- Coverage     66.45%   63.37%   -3.08%     
  Complexity      629      629              
============================================
  Files           138      140       +2     
  Lines          6129     6482     +353     
  Branches        179      179              
============================================
+ Hits           4073     4108      +35     
- Misses         1725     2043     +318     
  Partials        331      331              
Flag Coverage Δ
java-unittests 82.08% <ø> (ø)

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% <ø> (ø)
...ntrol-plane/pkg/reconciler/channel/v2/channelv2.go 0.00% <0.00%> (ø)
...fka/eventing/v1alpha1/consumer_group_validation.go 100.00% <100.00%> (ø)
...ol-plane/pkg/reconciler/channel/v2/controllerv2.go 100.00% <100.00%> (ø)

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 8704980...f59cd99. Read the comment docs.

@aavarghese aavarghese changed the title [WIP] KafkaChannel Reconciler for ConsumerGroup scaling KafkaChannel Reconciler for ConsumerGroup scaling Dec 17, 2021
@knative-prow-robot knative-prow-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 17, 2021
@aavarghese aavarghese force-pushed the consumer-scheduling-scaling-channel branch from afec462 to c560315 Compare December 17, 2021 15:22
@aavarghese
Copy link
Contributor Author

/cc @pierDipi

@aavarghese aavarghese force-pushed the consumer-scheduling-scaling-channel branch 5 times, most recently from a82faba to 884711d Compare January 7, 2022 23:02
@knative-prow-robot knative-prow-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jan 11, 2022
@aavarghese aavarghese force-pushed the consumer-scheduling-scaling-channel branch from 884711d to 2f36d2a Compare January 11, 2022 06:29
@knative-prow-robot knative-prow-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jan 11, 2022
@aavarghese aavarghese force-pushed the consumer-scheduling-scaling-channel branch 2 times, most recently from c68e4fb to ae400b8 Compare January 11, 2022 18:13
@aavarghese aavarghese force-pushed the consumer-scheduling-scaling-channel branch from ae400b8 to 3625830 Compare January 13, 2022 14:11
@aavarghese
Copy link
Contributor Author

@pierDipi if you have time for another review please? :)

@knative-prow-robot knative-prow-robot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jan 14, 2022
@aavarghese aavarghese force-pushed the consumer-scheduling-scaling-channel branch from 17a77ce to 42aca06 Compare January 14, 2022 18:51
Copy link
Member

@pierDipi pierDipi left a comment

Choose a reason for hiding this comment

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

Thanks!

Some minor comments

@knative-prow-robot knative-prow-robot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Feb 17, 2022
Signed-off-by: aavarghese <avarghese@us.ibm.com>
Signed-off-by: aavarghese <avarghese@us.ibm.com>
Signed-off-by: aavarghese <avarghese@us.ibm.com>
Signed-off-by: aavarghese <avarghese@us.ibm.com>
@knative-prow-robot knative-prow-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 17, 2022
aavarghese and others added 5 commits February 17, 2022 10:56
Signed-off-by: aavarghese <avarghese@us.ibm.com>
Signed-off-by: aavarghese <avarghese@us.ibm.com>
Signed-off-by: aavarghese <avarghese@us.ibm.com>
Co-authored-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com>
Signed-off-by: aavarghese <avarghese@us.ibm.com>
@aavarghese aavarghese force-pushed the consumer-scheduling-scaling-channel branch from 392752a to f59cd99 Compare February 17, 2022 15:57
@knative-prow-robot knative-prow-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 17, 2022
Copy link
Member

@pierDipi pierDipi left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

We can address the nit in another PR, thanks!

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Feb 17, 2022
@knative-prow-robot
Copy link
Contributor

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow-robot knative-prow-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 17, 2022
@pierDipi
Copy link
Member

/retest-required

@aavarghese
Copy link
Contributor Author

/retest

@knative-metrics-robot
Copy link

The following is the coverage report on the affected files.
Say /test pull-knative-sandbox-eventing-kafka-broker-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
control-plane/pkg/reconciler/channel/v2/channelv2.go Do not exist 0.0%
control-plane/pkg/reconciler/channel/v2/controllerv2.go Do not exist 100.0%

@knative-prow-robot
Copy link
Contributor

knative-prow-robot commented Feb 17, 2022

@aavarghese: The following tests 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-channel-integration-tests-tls e371d41 link true /test pull-knative-sandbox-eventing-kafka-broker-channel-integration-tests-tls
pull-knative-sandbox-eventing-kafka-broker-channel-reconciler-tests-tls e371d41 link true /test pull-knative-sandbox-eventing-kafka-broker-channel-reconciler-tests-tls
pull-knative-sandbox-eventing-kafka-broker-go-coverage f59cd99 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.

@aavarghese
Copy link
Contributor Author

/test pull-knative-sandbox-eventing-kafka-broker-reconciler-tests

@knative-prow-robot
Copy link
Contributor

@aavarghese: The specified target(s) for /test were not found.
The following commands are available to trigger required jobs:

  • /test pull-knative-sandbox-eventing-kafka-broker-build-tests
  • /test pull-knative-sandbox-eventing-kafka-broker-channel-integration-tests-sasl-plain
  • /test pull-knative-sandbox-eventing-kafka-broker-channel-integration-tests-sasl-ssl
  • /test pull-knative-sandbox-eventing-kafka-broker-channel-integration-tests-ssl
  • /test pull-knative-sandbox-eventing-kafka-broker-channel-reconciler-tests-sasl-plain
  • /test pull-knative-sandbox-eventing-kafka-broker-channel-reconciler-tests-sasl-ssl
  • /test pull-knative-sandbox-eventing-kafka-broker-channel-reconciler-tests-ssl
  • /test pull-knative-sandbox-eventing-kafka-broker-integration-tests
  • /test pull-knative-sandbox-eventing-kafka-broker-reconciler-tests
  • /test pull-knative-sandbox-eventing-kafka-broker-unit-tests
  • /test pull-knative-sandbox-eventing-kafka-broker-upgrade-tests

The following commands are available to trigger optional jobs:

  • /test pull-knative-sandbox-eventing-kafka-broker-go-coverage

Use /test all to run all jobs.

In response to this:

/test pull-knative-sandbox-eventing-kafka-broker-channel-integration-tests-tls

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.

@aavarghese
Copy link
Contributor Author

/test pull-knative-sandbox-eventing-kafka-broker-channel-integration-tests-tls

@knative-prow-robot
Copy link
Contributor

@aavarghese: The specified target(s) for /test were not found.
The following commands are available to trigger required jobs:

  • /test pull-knative-sandbox-eventing-kafka-broker-build-tests
  • /test pull-knative-sandbox-eventing-kafka-broker-channel-integration-tests-sasl-plain
  • /test pull-knative-sandbox-eventing-kafka-broker-channel-integration-tests-sasl-ssl
  • /test pull-knative-sandbox-eventing-kafka-broker-channel-integration-tests-ssl
  • /test pull-knative-sandbox-eventing-kafka-broker-channel-reconciler-tests-sasl-plain
  • /test pull-knative-sandbox-eventing-kafka-broker-channel-reconciler-tests-sasl-ssl
  • /test pull-knative-sandbox-eventing-kafka-broker-channel-reconciler-tests-ssl
  • /test pull-knative-sandbox-eventing-kafka-broker-integration-tests
  • /test pull-knative-sandbox-eventing-kafka-broker-reconciler-tests
  • /test pull-knative-sandbox-eventing-kafka-broker-unit-tests
  • /test pull-knative-sandbox-eventing-kafka-broker-upgrade-tests

The following commands are available to trigger optional jobs:

  • /test pull-knative-sandbox-eventing-kafka-broker-go-coverage

Use /test all to run all jobs.

In response to this:

/test pull-knative-sandbox-eventing-kafka-broker-channel-integration-tests-tls

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.

@knative-prow-robot knative-prow-robot merged commit 148387a into knative-extensions:main Feb 17, 2022
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 lgtm Indicates that a PR is ready to be merged. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants