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

Add the ability to set headers in the opamp bridge config #2413

Merged

Conversation

jdcrouse
Copy link
Contributor

@jdcrouse jdcrouse commented Dec 4, 2023

Description:
This PR adds a Headers field to the opamp bridge config and weaves that value through to the opamp client startup settings. In a subsequent PR this field will be configured to populate in the CRD

Link to tracking Issue: #2410

Testing: A test was added to config_test.yaml to show this field will be populated by the agent config yaml.

Documentation: None

Copy link

linux-foundation-easycla bot commented Dec 4, 2023

CLA Signed

The committers listed above are authorized under a signed CLA.

@jdcrouse jdcrouse marked this pull request as ready for review December 4, 2023 16:38
@jdcrouse jdcrouse requested a review from a team December 4, 2023 16:38
Copy link
Contributor

@jaronoff97 jaronoff97 left a comment

Choose a reason for hiding this comment

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

just a few small things :)

cmd/operator-opamp-bridge/config/config.go Show resolved Hide resolved
cmd/operator-opamp-bridge/config/config_headers.go Outdated Show resolved Hide resolved
cmd/operator-opamp-bridge/config/config_headers.go Outdated Show resolved Hide resolved
@jaronoff97 jaronoff97 enabled auto-merge (squash) December 4, 2023 18:42
@jaronoff97 jaronoff97 merged commit 0ad467d into open-telemetry:main Dec 4, 2023
27 checks passed
changexd pushed a commit to changexd/opentelemetry-operator that referenced this pull request Dec 5, 2023
…etry#2413)

* add headers to bridge config and include test for parsing config from yaml

* headers to own type and make translation method a method on the headers type

* rename file to headers.go, s/ToHttpHeader/ToHTTPHeader

* add changelog

* add copyright header
ItielOlenick pushed a commit to ItielOlenick/opentelemetry-operator that referenced this pull request May 1, 2024
…etry#2413)

* add headers to bridge config and include test for parsing config from yaml

* headers to own type and make translation method a method on the headers type

* rename file to headers.go, s/ToHttpHeader/ToHTTPHeader

* add changelog

* add copyright header
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.

2 participants