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

Storing upgrade status into events #707

Merged
merged 10 commits into from Feb 22, 2022

Conversation

yuriolisa
Copy link
Contributor

@yuriolisa yuriolisa commented Feb 11, 2022

Signed-off-by: Yuri Sa yurimsa@gmail.com

  • Creating struct to include Record parameter
  • Changing signature of upgrade functions
  • Switching upgrades messages to events.

Resolves #486

Signed-off-by: Yuri Sa <yurimsa@gmail.com>
@yuriolisa yuriolisa requested review from a team as code owners February 11, 2022 14:47
Signed-off-by: Yuri Sa <yurimsa@gmail.com>
Signed-off-by: Yuri Sa <yurimsa@gmail.com>
@yuriolisa
Copy link
Contributor Author

Fixes #486

Signed-off-by: Yuri Sa <yurimsa@gmail.com>
Signed-off-by: Yuri Sa <yurimsa@gmail.com>
Signed-off-by: Yuri Sa <yurimsa@gmail.com>
Signed-off-by: Yuri Sa <yurimsa@gmail.com>
@yuriolisa
Copy link
Contributor Author

@VineethReddy02 , @pavolloffay , @jpkrohling . Could you please review it?

@yuriolisa
Copy link
Contributor Author

@jpkrohling, could you please have a look?

@yuriolisa
Copy link
Contributor Author

yuriolisa commented Feb 15, 2022

Resolves #486

main.go Outdated Show resolved Hide resolved
pkg/collector/upgrade/v0_19_0_test.go Outdated Show resolved Hide resolved
pkg/collector/upgrade/v0_19_0_test.go Outdated Show resolved Hide resolved
pkg/collector/upgrade/v0_19_0_test.go Outdated Show resolved Hide resolved
pkg/collector/upgrade/v0_24_0_test.go Outdated Show resolved Hide resolved
Signed-off-by: Yuri Sa <yurimsa@gmail.com>
@jpkrohling
Copy link
Member

I'm requesting a review from @pavolloffay as well, as he was part of the discussion about moving from messages to events.

@yuriolisa
Copy link
Contributor Author

Hi @pavolloffay, could you please review it?

Copy link
Member

@pavolloffay pavolloffay left a comment

Choose a reason for hiding this comment

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

0.36.0 still puts some output into status.messages

We should also mark the status.messages as deprecated since we won't be using them anymore.

pkg/collector/upgrade/upgrade.go Outdated Show resolved Hide resolved
pkg/collector/upgrade/upgrade.go Outdated Show resolved Hide resolved
Signed-off-by: Yuri Sa <yurimsa@gmail.com>
@yuriolisa
Copy link
Contributor Author

@pavolloffay , could you please review it again?

Copy link
Member

@pavolloffay pavolloffay left a comment

Choose a reason for hiding this comment

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

Just some small comments, otherwise it looks good :)

main.go Outdated Show resolved Hide resolved
pkg/collector/upgrade/upgrade.go Show resolved Hide resolved
Signed-off-by: Yuri Sa <yurimsa@gmail.com>
@pavolloffay pavolloffay merged commit d4fe9bb into open-telemetry:main Feb 22, 2022
ItielOlenick pushed a commit to ItielOlenick/opentelemetry-operator that referenced this pull request May 1, 2024
* Storing upgrade status on events

Signed-off-by: Yuri Sa <yurimsa@gmail.com>

* Fixing Lint nits

Signed-off-by: Yuri Sa <yurimsa@gmail.com>

* Fixing test checks and converting messages to events

Signed-off-by: Yuri Sa <yurimsa@gmail.com>

* Fixing upgrade test

Signed-off-by: Yuri Sa <yurimsa@gmail.com>

* Fixing var value of expected version

Signed-off-by: Yuri Sa <yurimsa@gmail.com>

* Fixing var value of expected version

Signed-off-by: Yuri Sa <yurimsa@gmail.com>

* Change upgrade script fo v0.19.0

Signed-off-by: Yuri Sa <yurimsa@gmail.com>

* Created const for RecordBufferSize and Removed commented lines

Signed-off-by: Yuri Sa <yurimsa@gmail.com>

* Changed function signature and type name

Signed-off-by: Yuri Sa <yurimsa@gmail.com>

* Changed variable exposure

Signed-off-by: Yuri Sa <yurimsa@gmail.com>
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.

Convert messages to events
3 participants