-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Openstack support for rolling-update status #7050
Openstack support for rolling-update status #7050
Conversation
My last commit will do a DeepEqual comparison of cluster and instance group objects with their target object in the
|
My last commit removed any change to the functionality of the command. It will compare the spec's of an object and only increment generation if they are different. It will, as it did previously, perform the replace even if their spec's are identical. |
7750e3c
to
5d0d2a7
Compare
/hold cancel |
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.
for me this looks quite ok. However, does this support kops set cluster spec.kubernetesVersion=1.14.0
for instance? At least I am using that when I am updating stuff
Yeah this is correct, I would additionally have to update the set command to increment generation. I believe this is done server side in K8s. It would be great to have as a part of the clientset, instead of doing this in each command. |
5d0d2a7
to
c723e44
Compare
Ignoring replace with no spec changes Updating replace cancellation to only not set generation, instead of not performing the update Bazel updates Setting generation in common clientset code Bazel updates
c723e44
to
2f25db8
Compare
@zetaab I have moved the incrementation of the generation field on the cluster and instance group objects into the vfsclientset so each command will eventually cascade down into there. This now works with replace, set, edit, and likely any other commands or future commands. |
/retest @zetaab lmk when you reviewed the changes and if it's okay from your side! |
/test pull-kops-e2e-kubernetes-aws |
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.
/lgtm
/test pull-kops-e2e-kubernetes-aws |
@chrisz100 if this looks good would you mind approving this and perhaps reviewing these backports of the same: |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: chrisz100, drekle The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/sig openstack
I have incremented generation when an instance group or cluster resource has been modified. Both these generation values are stored on the metadata of openstack instances. When a rolling update is performed it compares the generation of the cluster and instance group in swift with those on the instance.
One issue with this is that a new generation does not necessarily mean that a rolling update needs to be performed, such as min and max number of nodes.
This PR is intended to resolve #7056