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

[release-1.15] fix: do not build OIDC config unless enabled (#4021) #4055

Conversation

Cali0707
Copy link
Member

This is a cherry pick of #4021 so that the OIDC config is only built when needed

* fix: do not build OIDC config unless enabled

Signed-off-by: Calum Murray <[email protected]>

* feat: receiver redeploys verticles when oidc feature changes

Signed-off-by: Calum Murray <[email protected]>

* feat: the control plane ensures receiver restarts

When config-features changes, the control plane
sets a annotation on the receiver pods so that
the configmap update is reconciled by k8s

Signed-off-by: Calum Murray <[email protected]>

* mvn spotless:apply

Signed-off-by: Calum Murray <[email protected]>

* cleanup: goimports

Signed-off-by: Calum Murray <[email protected]>

* fix: do not re-deploy verticles

Signed-off-by: Calum Murray <[email protected]>

* fix: features config paths are now correct

Signed-off-by: Calum Murray <[email protected]>

* fix java unit tests

Signed-off-by: Calum Murray <[email protected]>

* mvn spotless:apply

Signed-off-by: Calum Murray <[email protected]>

* address review comments

Signed-off-by: Calum Murray <[email protected]>

---------

Signed-off-by: Calum Murray <[email protected]>
@knative-prow knative-prow bot added area/control-plane area/data-plane size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Aug 12, 2024
Copy link

knative-prow bot commented Aug 12, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Cali0707

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 knative-prow bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 12, 2024
@knative-prow knative-prow bot requested review from aliok and matzew August 12, 2024 15:39
@Cali0707
Copy link
Member Author

/cc @creydr

@knative-prow knative-prow bot requested a review from creydr August 12, 2024 15:40
Copy link

codecov bot commented Aug 12, 2024

Codecov Report

Attention: Patch coverage is 31.42857% with 24 lines in your changes missing coverage. Please review.

Project coverage is 48.24%. Comparing base (5a06cc5) to head (2ecbb01).
Report is 3 commits behind head on release-1.15.

Files Patch % Lines
control-plane/pkg/reconciler/base/reconciler.go 46.66% 7 Missing and 1 partial ⚠️
control-plane/pkg/reconciler/broker/broker.go 0.00% 0 Missing and 4 partials ⚠️
control-plane/pkg/reconciler/broker/controller.go 33.33% 1 Missing and 1 partial ⚠️
control-plane/pkg/reconciler/channel/channel.go 0.00% 0 Missing and 2 partials ⚠️
control-plane/pkg/reconciler/channel/controller.go 33.33% 1 Missing and 1 partial ⚠️
control-plane/pkg/reconciler/sink/controller.go 33.33% 1 Missing and 1 partial ⚠️
control-plane/pkg/reconciler/sink/kafka_sink.go 0.00% 0 Missing and 2 partials ⚠️
control-plane/pkg/reconciler/trigger/trigger.go 0.00% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@               Coverage Diff                @@
##           release-1.15    #4055      +/-   ##
================================================
- Coverage         48.26%   48.24%   -0.02%     
================================================
  Files               246      246              
  Lines             14542    14556      +14     
================================================
+ Hits               7018     7023       +5     
- Misses             6817     6824       +7     
- Partials            707      709       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@creydr
Copy link
Contributor

creydr commented Aug 14, 2024

/test reconciler-tests

Copy link
Contributor

@creydr creydr left a comment

Choose a reason for hiding this comment

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

/lgtm

@knative-prow knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label Aug 14, 2024
@Cali0707
Copy link
Member Author

/retest-required

@knative-prow knative-prow bot merged commit d641892 into knative-extensions:release-1.15 Aug 15, 2024
35 of 37 checks passed
matzew pushed a commit to matzew/eventing-kafka-broker that referenced this pull request Nov 6, 2024
knative-extensions#4055)

* fix: do not build OIDC config unless enabled



* feat: receiver redeploys verticles when oidc feature changes



* feat: the control plane ensures receiver restarts

When config-features changes, the control plane
sets a annotation on the receiver pods so that
the configmap update is reconciled by k8s



* mvn spotless:apply



* cleanup: goimports



* fix: do not re-deploy verticles



* fix: features config paths are now correct



* fix java unit tests



* mvn spotless:apply



* address review comments



---------

Signed-off-by: Calum Murray <[email protected]>
pierDipi pushed a commit to openshift-knative/eventing-kafka-broker that referenced this pull request Nov 22, 2024
* fix: do not build OIDC config unless enabled (knative-extensions#4021) (knative-extensions#4055)

* fix: do not build OIDC config unless enabled



* feat: receiver redeploys verticles when oidc feature changes



* feat: the control plane ensures receiver restarts

When config-features changes, the control plane
sets a annotation on the receiver pods so that
the configmap update is reconciled by k8s



* mvn spotless:apply



* cleanup: goimports



* fix: do not re-deploy verticles



* fix: features config paths are now correct



* fix java unit tests



* mvn spotless:apply



* address review comments



---------

Signed-off-by: Calum Murray <[email protected]>

* usage of CopyOnWriteArrayList/AtomicRef

Signed-off-by: Matthias Wessendorf <[email protected]>

* using concurrent hash map and atomic integer for ids

Signed-off-by: Matthias Wessendorf <[email protected]>

---------

Signed-off-by: Calum Murray <[email protected]>
Signed-off-by: Matthias Wessendorf <[email protected]>
Co-authored-by: Calum Murray <[email protected]>
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 area/data-plane lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants