-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
identity: skip oidc default key generation on read-only storage error for local mounts #25265
Conversation
CI Results:
|
Build Results: |
Thanks for the fix. For my 2c, that edge case is obscure enough and we can detect it well enough to simply tell the user they need to go and do something on the primary cluster before they can continue. Ideally it would be nice to have a dedicated endpoint to tell them to hit for that purpose so that they can do something with no additional side effects. |
… for local mounts (#25265) * identity: skip oidc default key generation on read-only storage error * fix logic error * only log warning if local mount * handle ErrReadOnly immediately
This PR fixes enterprise tests that were encountering read-only storage errors for local-only mounts. The local-only mounts were trying to generate the OIDC default key which involves a storage write. We will simply log a warning and allow the local-only mount to be created for now.
This approach has an edge case where plugin workload identity would not work if:
I'm going to think on a better solution for this. In the meantime, this PR fixes the tests.