-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Enable schema validation for postgresql CRD #388
Comments
Hi @sdudoladov I would like to work on this issue.by the way im new to kubernetes and i would like to work on it. |
@gane5hvarma PRs are always welcome ;) |
Absolutely needed. Any progress so far? For example, I'd like the change being rejected if it has no effect. Otherwise the actual status will deviate from the spec.
|
We are working on syntax/schema validation now. See referenced PR. We do not yet intend to include checking "semantic" meaning and valid transitions. Which is also not supported I think by CRD schema. And ultimately the 9.6 to 10 transition could be implemented by someone in the Docker image. |
How does the operator determine some modifications |
I think this particular change is hard coded to inform users that this is not how major version upgrade works. (Spilo does it via Clone/Restore in Custom Bootstrap). |
A bit confused on current status. Is it supported (even with some adhoc operations) or not? |
The Postgres operator itself does not really support/do this. Migrating to a new major version in place is not supported right now and we are also not working on it right now. What is supported is upgrading the major version when doing a clone or restore from AWS S3 e.g. This is implemented in Spilo during the custom bootstrap. So we bootstrap from S3 backup. Upgrade single node and only then continue bootstraping replica nodes. Using clone/restore is a convenient and safe flow that is still easier than dump restore. |
This is good enough since major version upgrade is not that often. |
A few misconfigurations may be catched by k8s-native CRD validation early
The text was updated successfully, but these errors were encountered: