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.14] fix: do not build OIDC config unless enabled (#4021) #4056

Conversation

Cali0707
Copy link
Member

Manual cherry pick of #4021 so that we only rebuild the OIDC Discovery config 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]>
@Cali0707
Copy link
Member Author

/cc @creydr

@knative-prow knative-prow bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. area/control-plane area/data-plane approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Aug 12, 2024
Signed-off-by: Calum Murray <[email protected]>
Signed-off-by: Calum Murray <[email protected]>
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
Copy link

knative-prow bot commented Aug 14, 2024

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

@knative-prow knative-prow bot merged commit 98d4277 into knative-extensions:release-1.14 Aug 14, 2024
34 checks passed
matzew pushed a commit to matzew/eventing-kafka-broker that referenced this pull request Nov 6, 2024
…extensions#4021) (knative-extensions#4056)

* fix: do not build OIDC config unless enabled (knative-extensions#4021)

* 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]>

* fix: compilation errors

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

* goimports

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

---------

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

* fix: do not build OIDC config unless enabled (knative-extensions#4021)

* 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]>

* fix: compilation errors

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

* goimports

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

---------

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