-
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
Online image change: handling of the standby subcluster #127
Conversation
api/v1beta1/verticadb_types.go
Outdated
|
||
// +kubebuilder:validation:Optional | ||
// +operator-sdk:csv:customresourcedefinitions:type=spec,xDescriptors="urn:alm:descriptor:com.tectonic.ui:hidden" | ||
// If a standby, this is the name of the primary subcluster it is a standby |
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.
Isn't there a missing word on this line?
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.
How about this?
// If this is a standby, this is the name of the primary subcluster the
// subcluster was created for. This is state internally managed for
// an online image change.
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.
Yeah I think it is better. Maybe because my english is no so good but I feel like having 2 consecutive occurrences of subscluster is repetitive. What do you think about:
// If this is a standby subcluster, this is the name of the primary subcluster
// it was created for. This is state internally managed for
// an online image change.
Annotations: makeAnnotationsForObject(vdb), | ||
}, | ||
Spec: appsv1.StatefulSetSpec{ | ||
Selector: &metav1.LabelSelector{ | ||
MatchLabels: makeSvcSelectorLabels(vdb, scHandle), | ||
MatchLabels: makeSvcSelectorLabels(vdb, sc), |
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.
Is sticking to sc instead of scHandle only due to the fact that vapi.Subcluster is already passed around?
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.
Yes, so this undoes some of the work that I did earlier. Overall, I think it makes it simpler.
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 got it.
looks good. let's wait for the checks. |
looks good. Thanks. |
This is another PR for online-upgrade. It will handle creation and removal of the standby subcluster during the online-image change process.