-
Notifications
You must be signed in to change notification settings - Fork 511
Allow tolerationSeconds to be empty on Zone tolerations Requests #238
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 all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2113,21 +2113,29 @@ definitions: | |
| category. | ||
| type: string | ||
| tolerationSeconds: | ||
| description: TolerationSeconds represents the period of | ||
| time the toleration (which must be of effect NoExecute, | ||
| otherwise this field is ignored) tolerates the taint. | ||
| By default, it is not set, which means tolerate the taint | ||
| forever (do not evict). Zero and negative values will | ||
| be treated as 0 (evict immediately) by the system. | ||
| format: int64 | ||
| type: integer | ||
| $ref: "#/definitions/zoneTolerationSeconds" | ||
| value: | ||
| description: Value is the taint value the toleration matches | ||
| to. If the operator is Exists, the value should be empty, | ||
| otherwise just a regular string. | ||
| type: string | ||
| type: object | ||
| type: array | ||
|
|
||
| zoneTolerationSeconds: | ||
| description: TolerationSeconds represents the period of | ||
| time the toleration (which must be of effect NoExecute, | ||
| otherwise this field is ignored) tolerates the taint. | ||
| By default, it is not set, which means tolerate the taint | ||
| forever (do not evict). Zero and negative values will | ||
| be treated as 0 (evict immediately) by the system. | ||
| type: object | ||
| required: | ||
| - seconds | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I thought this was allowed to be nil :S
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it is, that's the main purpose of this PR, zoneTolerationSeconds is not required, but if zoneTolerationSeconds is defined, then seconds is required. |
||
| properties: | ||
| seconds: | ||
| type: integer | ||
| format: int64 | ||
|
|
||
| zoneResources: | ||
| description: If provided, use these requests and limit for cpu/memory | ||
|
|
||
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.
won't the swagger API reject this?
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.
no because TolerationSeconds it is not required, the required one is
secondson TolerationSeconds, kind of weird because both are pointers but swagger doesn't validate this.