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 --opamp-api-url flag to unix install script #76

Merged
merged 7 commits into from
May 22, 2024
Merged

Conversation

echlebek
Copy link
Contributor

This commit adds a new flag to the install script, responsible for setting the OpAmp API URL.

Previously, the OpAmp API URL was computed from the API URL. However, this did not work correctly in all scenarios.

This change is related to a pending change in the agent and may need to be held back until the agent change is committed.

See SumoLogic/sumologic-otel-collector#1519

@echlebek echlebek self-assigned this Apr 29, 2024
@echlebek echlebek requested review from a team as code owners April 29, 2024 18:49
@echlebek echlebek marked this pull request as draft April 29, 2024 21:16
@echlebek
Copy link
Contributor Author

Blocked on #78

Copy link

@swiatekm swiatekm left a comment

Choose a reason for hiding this comment

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

Can you add some tests to demonstrate that we're at least writing the right urls to the config files?

@echlebek
Copy link
Contributor Author

@swiatekm-sumo I will endeavour to do so!

@echlebek
Copy link
Contributor Author

Now, the darwin install script test has failed because:

make: *** [test] Error 1
error fetching release: failed to get release: 403 Forbidden

I will try to re-run it to see if it is transient.

@echlebek
Copy link
Contributor Author

The tests have now failed successfully. I will file an issue about the transient CI error.

This commit adds a new flag to the install script, responsible for
setting the OpAmp API URL.

Previously, the OpAmp API URL was computed from the API URL. However,
this did not work correctly in all scenarios.

This change is related to a pending change in the agent and may need to
be held back until the agent change is committed.
@echlebek
Copy link
Contributor Author

@swiatekm-sumo I modeled this after the other configuration overrides, they basically regex-replace a line of yaml with another line. I'm a little concerned about doing this by searching for the word "endpoint". But I'm not sure how to improve things without adding dependencies (yq, etc). Any thoughts on how to make this more robust? I'm not a very good bash programmer unfortunately.

@echlebek echlebek marked this pull request as ready for review May 17, 2024 20:32
@echlebek
Copy link
Contributor Author

@swiatekm-sumo I believe this feature is finally working, please take another look.

@rnishtala-sumo
Copy link
Contributor

LGTM!

@echlebek echlebek merged commit 6e2846d into main May 22, 2024
39 checks passed
@echlebek echlebek deleted the install-script branch May 22, 2024 17:33
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.

4 participants