-
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 |
|---|---|---|
|
|
@@ -280,8 +280,87 @@ var PostgresCRDResourceValidation = apiextv1.CustomResourceValidation{ | |
| }, | ||
| "nodeAffinity": { | ||
|
||
| Type: "object", | ||
| AdditionalProperties: &apiextv1.JSONSchemaPropsOrBool{ | ||
| Allows: true, | ||
| Properties: map[string]apiextv1.JSONSchemaProps{ | ||
| "preferredDuringSchedulingIgnoredDuringExecution": { | ||
| Type: "array", | ||
| Items: &apiextv1.JSONSchemaPropsOrArray{ | ||
| Schema: &apiextv1.JSONSchemaProps{ | ||
| Type: "object", | ||
| Properties: map[string]apiextv1.JSONSchemaProps{ | ||
| "preference": { | ||
| Type: "object", | ||
| Properties: map[string]apiextv1.JSONSchemaProps{ | ||
| "matchExpressions": { | ||
| Type: "array", | ||
| Items: &apiextv1.JSONSchemaPropsOrArray{ | ||
| Schema: &apiextv1.JSONSchemaProps{ | ||
| Type: "object", | ||
| AdditionalProperties: &apiextv1.JSONSchemaPropsOrBool{ | ||
| Allows: true, | ||
| }, | ||
| }, | ||
| }, | ||
| }, | ||
| "matchFields": { | ||
| Type: "array", | ||
| Items: &apiextv1.JSONSchemaPropsOrArray{ | ||
| Schema: &apiextv1.JSONSchemaProps{ | ||
| Type: "object", | ||
| AdditionalProperties: &apiextv1.JSONSchemaPropsOrBool{ | ||
| Allows: true, | ||
| }, | ||
| }, | ||
| }, | ||
| }, | ||
| }, | ||
| }, | ||
| "weight": { | ||
| Type: "integer", | ||
| Format: "int32", | ||
| }, | ||
| }, | ||
| Required: []string{"preference, weight"}, | ||
|
||
| }, | ||
| }, | ||
| }, | ||
| "requiredDuringSchedulingIgnoredDuringExecution": { | ||
| Type: "object", | ||
| Required: []string{"nodeSelectorTerms"}, | ||
| Properties: map[string]apiextv1.JSONSchemaProps{ | ||
| "nodeSelectorTerms": { | ||
| Type: "array", | ||
| Items: &apiextv1.JSONSchemaPropsOrArray{ | ||
| Schema: &apiextv1.JSONSchemaProps{ | ||
| Type: "object", | ||
| Properties: map[string]apiextv1.JSONSchemaProps{ | ||
| "matchExpressions": { | ||
| Type: "array", | ||
| Items: &apiextv1.JSONSchemaPropsOrArray{ | ||
| Schema: &apiextv1.JSONSchemaProps{ | ||
| Type: "object", | ||
| AdditionalProperties: &apiextv1.JSONSchemaPropsOrBool{ | ||
| Allows: true, | ||
| }, | ||
| }, | ||
| }, | ||
| }, | ||
| "matchFields": { | ||
| Type: "array", | ||
| Items: &apiextv1.JSONSchemaPropsOrArray{ | ||
| Schema: &apiextv1.JSONSchemaProps{ | ||
| Type: "object", | ||
| AdditionalProperties: &apiextv1.JSONSchemaPropsOrBool{ | ||
| Allows: true, | ||
| }, | ||
| }, | ||
| }, | ||
| }, | ||
| }, | ||
| }, | ||
| }, | ||
| }, | ||
| }, | ||
| }, | ||
| }, | ||
| }, | ||
| }, | ||
|
|
@@ -605,8 +684,87 @@ var PostgresCRDResourceValidation = apiextv1.CustomResourceValidation{ | |
| }, | ||
| "nodeAffinity": { | ||
| Type: "object", | ||
| AdditionalProperties: &apiextv1.JSONSchemaPropsOrBool{ | ||
| Allows: true, | ||
| Properties: map[string]apiextv1.JSONSchemaProps{ | ||
| "preferredDuringSchedulingIgnoredDuringExecution": { | ||
| Type: "array", | ||
| Items: &apiextv1.JSONSchemaPropsOrArray{ | ||
| Schema: &apiextv1.JSONSchemaProps{ | ||
| Type: "object", | ||
| Properties: map[string]apiextv1.JSONSchemaProps{ | ||
| "preference": { | ||
| Type: "object", | ||
| Properties: map[string]apiextv1.JSONSchemaProps{ | ||
| "matchExpressions": { | ||
| Type: "array", | ||
| Items: &apiextv1.JSONSchemaPropsOrArray{ | ||
| Schema: &apiextv1.JSONSchemaProps{ | ||
| Type: "object", | ||
| AdditionalProperties: &apiextv1.JSONSchemaPropsOrBool{ | ||
| Allows: true, | ||
| }, | ||
| }, | ||
| }, | ||
| }, | ||
| "matchFields": { | ||
| Type: "array", | ||
| Items: &apiextv1.JSONSchemaPropsOrArray{ | ||
| Schema: &apiextv1.JSONSchemaProps{ | ||
| Type: "object", | ||
| AdditionalProperties: &apiextv1.JSONSchemaPropsOrBool{ | ||
| Allows: true, | ||
| }, | ||
| }, | ||
| }, | ||
| }, | ||
| }, | ||
| }, | ||
| "weight": { | ||
| Type: "integer", | ||
| Format: "int32", | ||
| }, | ||
| }, | ||
| Required: []string{"preference, weight"}, | ||
|
||
| }, | ||
| }, | ||
| }, | ||
| "requiredDuringSchedulingIgnoredDuringExecution": { | ||
| Type: "object", | ||
| Required: []string{"nodeSelectorTerms"}, | ||
| Properties: map[string]apiextv1.JSONSchemaProps{ | ||
| "nodeSelectorTerms": { | ||
| Type: "array", | ||
| Items: &apiextv1.JSONSchemaPropsOrArray{ | ||
| Schema: &apiextv1.JSONSchemaProps{ | ||
| Type: "object", | ||
| Properties: map[string]apiextv1.JSONSchemaProps{ | ||
| "matchExpressions": { | ||
| Type: "array", | ||
| Items: &apiextv1.JSONSchemaPropsOrArray{ | ||
| Schema: &apiextv1.JSONSchemaProps{ | ||
| Type: "object", | ||
| AdditionalProperties: &apiextv1.JSONSchemaPropsOrBool{ | ||
| Allows: true, | ||
| }, | ||
| }, | ||
| }, | ||
| }, | ||
| "matchFields": { | ||
| Type: "array", | ||
| Items: &apiextv1.JSONSchemaPropsOrArray{ | ||
| Schema: &apiextv1.JSONSchemaProps{ | ||
| Type: "object", | ||
| AdditionalProperties: &apiextv1.JSONSchemaPropsOrBool{ | ||
| Allows: true, | ||
| }, | ||
| }, | ||
| }, | ||
| }, | ||
| }, | ||
| }, | ||
| }, | ||
| }, | ||
| }, | ||
| }, | ||
| }, | ||
| }, | ||
| "tolerations": { | ||
|
|
||
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.
Removing the affinity is another rolling update. Therefore, we should guarantee that everything is running when we leave the test.. Check other e2e tests like
test_zz_node_readiness_labelortest_zzz_taint_based_evictionhow it is handled there.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.
Will update!