-
Notifications
You must be signed in to change notification settings - Fork 9
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
feat: support InPlaceUpdate when only configuration changes are made #557
Conversation
686d721
to
c14cd2f
Compare
270d964
to
abae4ed
Compare
pkg/webhook/proxy_webhook.go
Outdated
@@ -53,6 +54,7 @@ func (p *proxySetDefaulter) Default(_ context.Context, obj runtime.Object) error | |||
|
|||
func (p *proxySetDefaulter) DefaultSpec(spec *v1alpha1.ProxySetSpec) { | |||
setDefaultServiceArgs(spec) | |||
spec.OperatorVersion = pointer.String(v1alpha1.LatestOpVersion.String()) |
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.
defaulting op version will cause rolling-update accidentally
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.
only set OperatorVersion when it's empty, or distinguish CREATE/UPDATE and only set on CREATE
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.
- should not skip reconcile, instead, check operatorVersion in certain module to decide code path
- only set operatorVersion on CREATE AND operatorVersion == nil
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
What type of PR is this?
Which issue(s) this PR fixes:
Fixes #
What this PR does / why we need it:
https://github.com/matrixorigin/MO-Cloud/issues/4026
Special notes for your reviewer:
Not Available
Additional documentation (e.g. design docs, usage docs, etc.):
Not Available