-
Notifications
You must be signed in to change notification settings - Fork 138
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
Feature/auto restart for update #88
base: master
Are you sure you want to change the base?
Conversation
pkg/k8sutil/statefulset.go
Outdated
origss, err := s.GetStatefulSet(ss.Namespace, ss.Name) | ||
if err != nil { | ||
return err | ||
} | ||
patch := client.MergeFrom(origss.DeepCopy()) | ||
ss.Spec.Template.DeepCopyInto(&origss.Spec.Template) | ||
return s.client.Patch(context.TODO(), origss, patch) |
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.
Hi @debbyku,
With this change I was able to restart pods during resource updates, but the change of the number of replicas is not working anymore. Can you confirm it?
Thanks!!!
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.
Sorry, I missed the replicas update here as the "replicas" is not in ss.Spec.Template.
I've modified the codes and and push again.
Thanks.
why it is not merged? |
It is to provide auto restart feature when updating redis cluster features, e.g. cpu, memory, image.
It will also update pvc storage size.