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

chore(ec): send upgrade events instead of the operator #5017

Conversation

emosbaugh
Copy link
Member

@emosbaugh emosbaugh commented Nov 20, 2024

What this PR does / why we need it:

Sends upgrade events instead of operator

Related replicatedhq/embedded-cluster#1527

Screenshot 2024-11-26 at 10 39 09 AM

Which issue(s) this PR fixes:

Does this PR require a test?

Does this PR require a release note?


Does this PR require documentation?

@emosbaugh emosbaugh added type::bug Something isn't working bug::normal labels Nov 20, 2024
pkg/operator/operator.go Outdated Show resolved Hide resolved
pkg/operator/operator.go Outdated Show resolved Hide resolved
@@ -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 {
Copy link
Member

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?

Copy link
Member

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.

Copy link
Member Author

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

sgalsaleh
sgalsaleh previously approved these changes Nov 26, 2024
@emosbaugh emosbaugh merged commit 2417b58 into main Nov 27, 2024
122 of 159 checks passed
@emosbaugh emosbaugh deleted the emosbaugh/sc-116124/upgrade-events-should-be-sent-by-kots-instead branch November 27, 2024 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug::normal type::bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants