-
Notifications
You must be signed in to change notification settings - Fork 26
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
UpdateSelector: add field #240
Conversation
cc59df9
to
3d8c084
Compare
3d8c084
to
9bd180b
Compare
type UpdateStatus struct { | ||
//+kubebuilder:default:=None | ||
State UpdateState `json:"state,omitempty"` | ||
Components []string `json:"components,omitempty"` | ||
Flow UpdateFlow `json:"flow,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.
Please add comment that this field means - it goes into CRD and api.md
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.
done
api/v1/ytsaurus_types.go
Outdated
type UpdateSelector string | ||
|
||
const ( | ||
UpdateSelectorNone UpdateSelector = "" |
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.
"None" is confusing, especially when it is not "Nothing".
Maybe "Unspecified".
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.
done
Introduced new
UpdateSelector
field in spec which can be one of:-
""
(empty) — field is not considered at all, which is backward compatible with usingEnableFullUpdate
-
Nothing
— no component can be updated (logs will indicate a reason)-
MasterOnly
— only master will be updated (flow with safety checks/safe mode/snapshots/exit read only), other components' updates will be ignored-
TabletNodesOnly
— only tablet nodes will be updated (with removing tablet bundles and recreating them after the update)-
ExecNodesOnly
— only exec nodes will be updated (without extra steps, because it is stateless component)-
StatelessOnly
— everything apart from master and tablet nodes will be updated (currently it is the same as so called local update flow)-
Everything
— everything will be updated at once (currently it is the same as so called Full update flow)I've called the new field experimental since I'm not sure if we will want to support all that behaviours in the future after #115
Also
Flow
field is added toUpdateStatus
which is persisted with transition to the Updating status. Usage can be seen in #239