Skip to content

Conversation

FxKu
Copy link
Member

@FxKu FxKu commented Nov 23, 2020

The Postgresql CRD has been messed up by #746. This PR cleans it up. Plus for validation it replaces additionalProperties with XPreserveUnknownFields: true on the object level wherever we allow K8s specs in our custom resources.

Tries to fix #1206

FxKu referenced this pull request Nov 24, 2020
* 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
Copy link
Member

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 ?

Copy link
Member Author

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.

Copy link
Member

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

@Jan-M
Copy link
Member

Jan-M commented Nov 24, 2020

👍

1 similar comment
@sdudoladov
Copy link
Member

👍

@FxKu FxKu merged commit cfd83e3 into master Nov 24, 2020
@FxKu FxKu added this to the 1.6 milestone Nov 27, 2020
@debu99
Copy link

debu99 commented Dec 8, 2020

how to use this image?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Postgres-operator doesn't let to create sidecars anymore
4 participants