-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[cmd/opampsupervisor] Persist collector remote config & telemetry set… #30807
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know it's marked as a draft, but overall looks good to me right now.
return err | ||
} | ||
|
||
return os.WriteFile(filepath.Join(s.config.Storage.Directory, lastRecvRemoteConfigFile), cfg, 0644) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we make the permissions on this file more restrictive, e.g. 0600
?
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
…tor-contrib into issue-21078
…llector-contrib into issue-21078
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
Closed as inactive. Feel free to reopen if this PR is still being worked on. |
@srikanthccv Are you still working on this? I'd be happy to help push this forward. |
Hi @BinaryFissionGames, I am on vacation till 1st Apr. I will revive this after I come back. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the continued work @srikanthccv, please resolve the conflicts. @evan-bradley if you could review, would be great to move this forward.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the delay, thanks for keeping this going.
@srikanthccv FYI it looks like some conflicts were introduced by other Supervisor PRs. |
…tings
Description:
Persists the configs contained in the AgentRemoteConfig and ConnectionSettings messages to be used on startup before any messages have been received from the OpAMP server. If the capability corresponding to the message for the config is disabled, then the config is not merged into the Collector's effective configuration
Link to tracking Issue: Part of #21078
Testing:
Added e2e test
Documentation: