-
Notifications
You must be signed in to change notification settings - Fork 93
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
chore(ec): send upgrade events instead of the operator #5017
chore(ec): send upgrade events instead of the operator #5017
Conversation
@@ -75,6 +76,11 @@ func startClusterUpgrade( | |||
|
|||
log.Printf("Starting cluster upgrade to version %s...", newcfg.Version) | |||
|
|||
// We cannot notify the upgrade started until the new install is created | |||
if err := NotifyUpgradeStarted(ctx, license.Spec.Endpoint, newInstall, current, versionLabel); err != 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.
so if the upgrade fails prior to this point, we wouldn't report that an upgrade started, but we would report that it failed?
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.
i guess that's the caveat that you captured in the comment that the new installation object is required to report that the upgrade started. so nevermind.
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.
updated. im not sure if its better or worse this way
What this PR does / why we need it:
Sends upgrade events instead of operator
Related replicatedhq/embedded-cluster#1527
Which issue(s) this PR fixes:
Does this PR require a test?
Does this PR require a release note?
Does this PR require documentation?