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

feat: set resource revision for connectors #3868

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

nrwiersma
Copy link
Contributor

Overview

This PR adds resource versions to connectors that are API controlled but default. It does not require the Connector to use the resource revision, so that Kubernetes still functions.

What this PR does / why we need it

This fixes an issue with connectors where updates to a connector via the API does not get applied to the runtime use of the connector. This seems to have been previously fixed for Kubernetes specifically, but this is a more general fix.

Fixes #3855

Special notes for your reviewer

I see no obvious way to test this, but if I am missing something, please let me know.

Signed-off-by: Nicholas Wiersma <nick@wiersma.co.za>
@nrwiersma nrwiersma force-pushed the connector-resource-revisions branch from 86eebc6 to 8405be6 Compare December 4, 2024 12:16
@nabokihms
Copy link
Member

I didn't find how it fixes the original problem, but still think that the change is ok.

@nrwiersma
Copy link
Contributor Author

I didn't find how it fixes the original problem, but still think that the change is ok.

The issue is that updates to a Connector in the API are ignored because the ResourceVersion, which is empty, does not change, and therefore needs a restart of Dex to get the updated Connector. By adding and incrementing the ResourceVersion field, this solves the observed issue.

@nabokihms nabokihms merged commit d521051 into dexidp:master Dec 17, 2024
9 of 10 checks passed
@nrwiersma nrwiersma deleted the connector-resource-revisions branch December 18, 2024 04:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Updates to connectors via API are not reflected at runtime
2 participants