-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add node affinity support #1166
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
Changes from 1 commit
f842529
abc2cb4
d412754
abc48a6
c7aadba
4014442
b6a83ca
9b53763
b8751e8
58c2142
300183f
04be950
a3dea03
f032cd5
fc9d5bf
88743f8
a8c9b0e
8f05753
03f91c3
867b294
3bfa3af
8e8cd93
f5a871b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -214,12 +214,13 @@ type PostgresStatus struct { | |
| // makes sense to expose. E.g. pool size (min/max boundaries), max client | ||
| // connections etc. | ||
| type ConnectionPooler struct { | ||
| NumberOfInstances *int32 `json:"numberOfInstances,omitempty"` | ||
| Schema string `json:"schema,omitempty"` | ||
| User string `json:"user,omitempty"` | ||
| Mode string `json:"mode,omitempty"` | ||
| DockerImage string `json:"dockerImage,omitempty"` | ||
| MaxDBConnections *int32 `json:"maxDBConnections,omitempty"` | ||
| NumberOfInstances *int32 `json:"numberOfInstances,omitempty"` | ||
| Schema string `json:"schema,omitempty"` | ||
| User string `json:"user,omitempty"` | ||
| Mode string `json:"mode,omitempty"` | ||
| DockerImage string `json:"dockerImage,omitempty"` | ||
| MaxDBConnections *int32 `json:"maxDBConnections,omitempty"` | ||
| NodeAffinity v1.NodeAffinity `json:"nodeAffinity,omitempty"` | ||
|
||
|
|
||
| Resources `json:"resources,omitempty"` | ||
| } | ||
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.
gosh, that's a lot of lines. Is this validation covering all affinity options? Maybe we just cut it short with:
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.
at least, makes it easier to copy it to the CRD yaml manifest where this part is still missing, I think
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.
@FxKu for some reason, it was just kept trimming extra fields, even with
XPreserveUnknownFields. That is why I had to expand it almost fully. :(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.
I just tested it again, and yes, even with
XPreserveUnknownFieldsit still trimsunknownfields and completely breaks node affinity support. Btw, before Nov 17th, it used to work fine.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.
ok, can you remove this part from the validation as it covers the anti_affinity of the 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.
sounds good! will remove