Skip to content
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

Merged
merged 12 commits into from
Oct 16, 2024

Conversation

cyberchen98
Copy link
Contributor

What type of PR is this?

  • API-change
  • BUG
  • Improvement
  • Documentation
  • Feature
  • Test and CI
  • Code Refactoring

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

@@ -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())
Copy link
Contributor

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

Copy link
Contributor

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

Copy link
Contributor

@aylei aylei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. should not skip reconcile, instead, check operatorVersion in certain module to decide code path
  2. only set operatorVersion on CREATE AND operatorVersion == nil

Copy link
Contributor

@aylei aylei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@cyberchen98 cyberchen98 merged commit a76860a into main Oct 16, 2024
3 checks passed
@cyberchen98 cyberchen98 deleted the wangchen/inplace-update branch October 16, 2024 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants