cloudfoundry / korifi

Cloud Foundry on Kubernetes
Apache License 2.0
315 stars 62 forks source link

Remove support for legacy user-provided service instance credentials #3520

Open danail-branekov opened 4 days ago

danail-branekov commented 4 days ago

In 0.12.0 we introduced support for objects in user-provided services credentials (https://github.com/cloudfoundry/korifi/issues/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

As there is no way around that, let's make use of it and get rid of the legacy secret format support:

danail-branekov commented 3 days ago

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