-
Notifications
You must be signed in to change notification settings - Fork 1k
preserving fields only when using k8s specs #1228
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
Conversation
* move to apiextensions from v1beta1 to v1 * remove metadata from CRD validation * some forgotten change
@@ -532,6 +532,11 @@ func (in *PostgresSpec) DeepCopyInto(out *PostgresSpec) { | |||
*out = new(bool) | |||
**out = **in | |||
} | |||
if in.EnableReplicaConnectionPooler != nil { | |||
in, out := &in.EnableReplicaConnectionPooler, &out.EnableReplicaConnectionPooler |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was this code generated ? was there any change to the connection pooler ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, and seem the generated code wasn't updated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not very good, but let's commit it in this PR with a commit message acknowledging this fix
👍 |
1 similar comment
👍 |
how to use this image? |
The
Postgresql
CRD has been messed up by #746. This PR cleans it up. Plus for validation it replacesadditionalProperties
withXPreserveUnknownFields: true
on the object level wherever we allow K8s specs in our custom resources.Tries to fix #1206