-
Notifications
You must be signed in to change notification settings - Fork 70
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
Remove support for legacy user-provided service instance credentials #3520
Comments
danail-branekov
added a commit
that referenced
this issue
Oct 15, 2024
In 0.12.0 we have extended upsi credentials secret to be represented by arbitrary objects, not just plain maps of strings. That required certain migration logic to migrate the secret to the new format and avoid workloads restart during Korifi upgrade. With the upcoming release, workload restart would be performed anyway because of unrelated increments. Provided that 0.12.0 should have migrated any user-provided service instances to the new credentials format, we want to get rid of the migration code. fixes #3520
Turns out that maybe this would not that trivial :( Imagine the following scenario:
I have not tested yet, but I am pretty sure we would see the same error if we jump from 0.11.0 to the release candidate |
Merged
github-project-automation
bot
moved this from 🔄 In progress
to ✅ Done
in Korifi - Backlog
Nov 28, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In 0.12.0 we introduced support for objects in user-provided services credentials (#2900). When we have been working on that, we wanted to avoid workloads restart on korifi upgrade in order to ensure smooth upgrade path, and came up with some legacy support code.
With the upcoming release the smooth upgrade is not going to be possible as workloads have to restart, see
CF_INSTANCE_INDEX
env variable with downward API #3483As there is no way around that, let's make use of it and get rid of the legacy secret format support:
korifi/controllers/controllers/services/instances/upsi/controller.go
Lines 151 to 183 in f9b24a3
korifi/controllers/controllers/services/bindings/upsi/controller.go
Lines 90 to 106 in f9b24a3
The text was updated successfully, but these errors were encountered: