-
Notifications
You must be signed in to change notification settings - Fork 729
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
Validate that upgrade to 8.0 is going through 7.last #5258
Comments
Do we want to enforce that check at both the webhook level and the reconciliation level? |
This already happens through the supportedVersions mechanism afaik:
The problem is of course that it is also not watertight: a quick upgrade from 7.16.0 through 7.17.0 to 8.0.0 without waiting for the rollout leaves the user in a similar situation as described above. |
Could we also check the lowest running version currently running by inspecting the Pods? Only allow an upgrade to 8.0 if the lowest running version is 7.last? (which makes me think that actually with this approach we may ignore the version from the previous manifest version entirely, and only focus on retrieving a version from the current Pods, if there's any). |
I was thinking whether we should just deny a version upgrade if the The version compatibility check we have already in place here cloud-on-k8s/pkg/controller/elasticsearch/driver/version.go Lines 14 to 23 in 20f522f
already looks at the version of each Pod and compares it with the proposed version. |
or maybe look at |
Yes that is better. |
Upgrades to Elastic Stack 8.0 will only be possible from the last version of the 7.x series (~ 7.17). We are currently not enforcing or validating this behaviour. The lack of any validation can lead to very tricky situations for our users as "downgrades" are not allowed in ECK.
The text was updated successfully, but these errors were encountered: