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

Use trigger for reconciliation, add OpenTelemetry Collector and fix logging #13

Merged
merged 1 commit into from
May 17, 2024

Conversation

iblancasa
Copy link

Based on #12.

This PR:

  • Adds support for OpenTelemetryCollector instances
  • Unifies the logging output
  • Uses trigger to reconcile the addon
  • Avoids reconciliation if no managedclusteraddon objects are present

Copy link
Owner

@JoaoBraveCoding JoaoBraveCoding left a comment

Choose a reason for hiding this comment

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

Can we revert the logging changes from this PR? I also agree they are necessary but they should be done in a separate PR.
Once that's done I'll merge this PR and then we will have the 3 teams reviewing the final PR in rhobs/multicluster-observability-operator. You have permissions to push to my branches so you will be able to address review comments there.

@iblancasa
Copy link
Author

@JoaoBraveCoding sure. I'll do.

Signed-off-by: Israel Blancas <iblancasa@gmail.com>
@JoaoBraveCoding
Copy link
Owner

Perfect! I'm merging this we can have the review on rhobs instead of here

@JoaoBraveCoding JoaoBraveCoding merged commit ef5c3ec into JoaoBraveCoding:watcher May 17, 2024
3 checks passed
JoaoBraveCoding added a commit that referenced this pull request Jun 6, 2024
* feat: addd controller to watch configuration resources

* feat: adds controller to annotate ManifestWork

* fix: add missing schemas

* feat: adds new event handler for cluster wide resources

* chore: improves triggers on clusterwideresources

* chore: improve enqueueForClusterWideResource function

* Add OpenTelemetryCollector resource to the reconciliation

Signed-off-by: Israel Blancas <iblancasa@gmail.com>

* Revert "Add OpenTelemetryCollector resource to the reconciliation"

This reverts commit 0e9894e.

* Move the watcher cli application to be a go routine (#12)

* Move the watcher cli application to be a go routine

Signed-off-by: Israel Blancas <iblancasa@gmail.com>

* Fix lint

Signed-off-by: Israel Blancas <iblancasa@gmail.com>

* Fix lint

Signed-off-by: Israel Blancas <iblancasa@gmail.com>

* Update internal/controllers/watcher/controller.go

Co-authored-by: Joao Marcal <joao.marcal12@gmail.com>

* Update internal/controllers/watcher/controller.go

Co-authored-by: Joao Marcal <joao.marcal12@gmail.com>

* Update main.go

Co-authored-by: Joao Marcal <joao.marcal12@gmail.com>

* Update main.go

Co-authored-by: Joao Marcal <joao.marcal12@gmail.com>

* Add suggestion

Signed-off-by: Israel Blancas <iblancasa@gmail.com>

---------

Signed-off-by: Israel Blancas <iblancasa@gmail.com>
Co-authored-by: Joao Marcal <joao.marcal12@gmail.com>

* Move to use addon-framework Trigger function (#13)

Signed-off-by: Israel Blancas <iblancasa@gmail.com>

* revert unrelated changes

* * Remove ConfigMaps from reconciliation.
* If a secret is updated, check if there is any reference to it in any
  of the ManifestWorks
* Change some comments

Signed-off-by: Israel Blancas <iblancasa@gmail.com>

* Add changes requested in code review

Signed-off-by: Israel Blancas <iblancasa@gmail.com>

* Change comment

* address small review comments

---------

Signed-off-by: Israel Blancas <iblancasa@gmail.com>
Co-authored-by: Israel Blancas <iblancasa@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
2 participants