-
Notifications
You must be signed in to change notification settings - Fork 120
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 selector path for cg scale subresource #3666
fix selector path for cg scale subresource #3666
Conversation
Signed-off-by: Calum Murray <cmurray@redhat.com>
/cherry-pick release-1.13 |
@Cali0707: once the present PR merges, I will cherry-pick it on top of release-1.13 in a new PR and assign it to you. In response to this:
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. |
/cherry-pick release-1.12 |
@Cali0707: once the present PR merges, I will cherry-pick it on top of release-1.12 in a new PR and assign it to you. In response to this:
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. |
/cc @converge |
@pierDipi: GitHub didn't allow me to request PR reviews from the following users: converge. Note that only knative-extensions members and repo collaborators can review this PR, and authors cannot review their own PRs. In response to this:
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. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3666 +/- ##
=============================================
+ Coverage 61.94% 74.49% +12.54%
- Complexity 845 846 +1
=============================================
Files 188 97 -91
Lines 12785 3207 -9578
Branches 273 273
=============================================
- Hits 7920 2389 -5531
+ Misses 4235 651 -3584
+ Partials 630 167 -463
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
/hold |
Signed-off-by: Calum Murray <cmurray@redhat.com>
Signed-off-by: Calum Murray <cmurray@redhat.com>
71de444
to
5978864
Compare
/unhold The CI seems less flaky after the fix (or maybe I got lucky 🤷), maybe the incorrect scale subresource definition was also slowing things down on the API server side @pierDipi |
/test reconciler-tests |
2 similar comments
/test reconciler-tests |
/test reconciler-tests |
/retest |
I have manually tested, and it works as expected! 🎉 HPA now shows the kafka lag value / target |
control-plane/pkg/apis/internals/kafka/eventing/v1alpha1/consumer_group_types.go
Outdated
Show resolved
Hide resolved
Co-authored-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com>
/cc @pierDipi |
/test reconciler-tests |
/retest-required |
1 similar comment
/retest-required |
Good catch @Cali0707! /test reconciler-tests |
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
Thanks for fixing @Cali0707
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Cali0707, creydr 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 |
/retest-required |
1 similar comment
/retest-required |
/test reconciler-tests-namespaced-broker |
/retest-required |
@Cali0707: new pull request created: #3688 In response to this:
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. |
@Cali0707: new pull request created: #3689 In response to this:
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. |
* fix selector path for cg scale subresource Signed-off-by: Calum Murray <cmurray@redhat.com> * set .status.selector properly Signed-off-by: Calum Murray <cmurray@redhat.com> * fix: unit tests expect correct cg status Signed-off-by: Calum Murray <cmurray@redhat.com> * fix: selector is omitted from struct when empty Co-authored-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com> --------- Signed-off-by: Calum Murray <cmurray@redhat.com> Co-authored-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com>
* fix selector path for cg scale subresource Signed-off-by: Calum Murray <cmurray@redhat.com> * set .status.selector properly Signed-off-by: Calum Murray <cmurray@redhat.com> * fix: unit tests expect correct cg status Signed-off-by: Calum Murray <cmurray@redhat.com> * fix: selector is omitted from struct when empty Co-authored-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com> --------- Signed-off-by: Calum Murray <cmurray@redhat.com> Co-authored-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com>
…987) * fix selector path for cg scale subresource * set .status.selector properly * fix: unit tests expect correct cg status * fix: selector is omitted from struct when empty --------- Signed-off-by: Calum Murray <cmurray@redhat.com> Co-authored-by: Calum Murray <cmurray@redhat.com>
* fix selector path for cg scale subresource Signed-off-by: Calum Murray <cmurray@redhat.com> * set .status.selector properly Signed-off-by: Calum Murray <cmurray@redhat.com> * fix: unit tests expect correct cg status Signed-off-by: Calum Murray <cmurray@redhat.com> * fix: selector is omitted from struct when empty Co-authored-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com> --------- Signed-off-by: Calum Murray <cmurray@redhat.com> Co-authored-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com>
* fix selector path for cg scale subresource Signed-off-by: Calum Murray <cmurray@redhat.com> * set .status.selector properly Signed-off-by: Calum Murray <cmurray@redhat.com> * fix: unit tests expect correct cg status Signed-off-by: Calum Murray <cmurray@redhat.com> * fix: selector is omitted from struct when empty Co-authored-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com> --------- Signed-off-by: Calum Murray <cmurray@redhat.com> Co-authored-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com>
…988) * fix selector path for cg scale subresource * set .status.selector properly * fix: unit tests expect correct cg status * fix: selector is omitted from struct when empty --------- Signed-off-by: Calum Murray <cmurray@redhat.com> Co-authored-by: Calum Murray <cmurray@redhat.com> Co-authored-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com>
Currently, we don't define the scale subresource correctly on the consumergroup, as we say that the
labelSelectorPath
is.status.selector
, while we set.spec.selector
instead. See the code here:eventing-kafka-broker/control-plane/pkg/apis/internals/kafka/eventing/v1alpha1/consumer_group_defaults.go
Lines 41 to 43 in 6012e1b
I believe this should fix the "SelectorRequired" warnings we see on the scaled objects reported in knative/eventing#7655
Proposed Changes
Release Note
Docs