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

[new-component] Operator OpAMP Bridge Service #1339

Merged
merged 17 commits into from
Jan 11, 2023

Conversation

jaronoff97
Copy link
Contributor

@jaronoff97 jaronoff97 commented Dec 22, 2022

Implements part 1 of #1318

A few things before this is ready:

  • Add in deletion of collectors
  • Add in block rules
  • Re-add metrics in for the agent
  • Updated github actions to add to list of things to run tests and linting for

Copy link
Contributor

@kristinapathak kristinapathak left a comment

Choose a reason for hiding this comment

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

A few questions/thoughts 🙂 very excited to learn more about this.

cmd/remote-configuration/agent/agent.go Outdated Show resolved Hide resolved
cmd/remote-configuration/agent/agent.go Outdated Show resolved Hide resolved
cmd/remote-configuration/agent/agent.go Outdated Show resolved Hide resolved
cmd/remote-configuration/agent/agent.go Outdated Show resolved Hide resolved
cmd/remote-configuration/agent/agent.go Outdated Show resolved Hide resolved
cmd/remote-configuration/agent/agent.go Outdated Show resolved Hide resolved
cmd/remote-configuration/agent/agent.go Outdated Show resolved Hide resolved
cmd/remote-configuration/agent/agent.go Outdated Show resolved Hide resolved
var multiErr error
for key, file := range config.Config.GetConfigMap() {
if len(key) == 0 || len(file.Body) == 0 {
continue
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we continue? If there's a partial success, the config hash is no longer accurate to what's being provided. Is that okay?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this was a choice by me to say that it's okay to have a partial success, i agree the configHash would not be accurate though. Should we just throw away everything in this case?

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure. 😕 It seems difficult to make this function an atomic operation.

cmd/remote-configuration/agent/agent.go Outdated Show resolved Hide resolved
@jaronoff97 jaronoff97 marked this pull request as ready for review January 4, 2023 23:03
@jaronoff97 jaronoff97 requested a review from a team January 4, 2023 23:03
cmd/remote-configuration/Dockerfile Outdated Show resolved Hide resolved
cmd/remote-configuration/agent/agent.go Outdated Show resolved Hide resolved
cmd/remote-configuration/metrics/reporter.go Outdated Show resolved Hide resolved
cmd/remote-configuration/metrics/reporter.go Outdated Show resolved Hide resolved
cmd/remote-configuration/metrics/reporter.go Outdated Show resolved Hide resolved
cmd/remote-configuration/Dockerfile Outdated Show resolved Hide resolved
cmd/remote-configuration/agent/agent.go Outdated Show resolved Hide resolved
cmd/remote-configuration/logger/logger.go Outdated Show resolved Hide resolved
cmd/remote-configuration/main.go Outdated Show resolved Hide resolved
Copy link
Contributor

@iblancasa iblancasa left a comment

Choose a reason for hiding this comment

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

Just asking: should it be an E2E test created ?

cmd/remote-configuration/operator/client.go Outdated Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
@jaronoff97 jaronoff97 changed the title [new-component] Remote Configuration Service [new-component] Operator OpAMP Bridge Service Jan 6, 2023
@tigrannajaryan
Copy link
Member

@jaronoff97 it would be great to have your feedback on OpAMP spec and OpAMP Go as you work on this capability of the operator. Please feel free to open issues in OpAMP repos or ping me if you have any questions.

@pavolloffay pavolloffay merged commit b056433 into open-telemetry:main Jan 11, 2023
@jaronoff97 jaronoff97 deleted the 1318-remote-config-service branch January 11, 2023 18:58
iblancasa pushed a commit to iblancasa/opentelemetry-operator that referenced this pull request Jan 31, 2023
* Begin the journey

* Some hacks to functionality

* Fix create bug, getting prepped for refactor

* Some reorganization and cleaning, added tests

* Add deletion and dockerfile

* Add logic for specifying allowed components

* Linting, CI, header

* Makefile CI

* Added comments, created an object for use by the applied keys map

* Fix makefile, update to use require

* IMports

* updated from comments

* Improved logging, working dockerfile

* Rename the whole thing

* Change service name

* Update from feedback
iblancasa pushed a commit to iblancasa/opentelemetry-operator that referenced this pull request Feb 1, 2023
* Begin the journey

* Some hacks to functionality

* Fix create bug, getting prepped for refactor

* Some reorganization and cleaning, added tests

* Add deletion and dockerfile

* Add logic for specifying allowed components

* Linting, CI, header

* Makefile CI

* Added comments, created an object for use by the applied keys map

* Fix makefile, update to use require

* IMports

* updated from comments

* Improved logging, working dockerfile

* Rename the whole thing

* Change service name

* Update from feedback
ItielOlenick pushed a commit to ItielOlenick/opentelemetry-operator that referenced this pull request May 1, 2024
* Begin the journey

* Some hacks to functionality

* Fix create bug, getting prepped for refactor

* Some reorganization and cleaning, added tests

* Add deletion and dockerfile

* Add logic for specifying allowed components

* Linting, CI, header

* Makefile CI

* Added comments, created an object for use by the applied keys map

* Fix makefile, update to use require

* IMports

* updated from comments

* Improved logging, working dockerfile

* Rename the whole thing

* Change service name

* Update from feedback
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.

7 participants