-
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]: Implement PackagesAvailable for upgrading agent #35503
Open
BinaryFissionGames
wants to merge
53
commits into
open-telemetry:main
Choose a base branch
from
observIQ:feat/supervisor-update-collector
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
53 commits
Select commit
Hold shift + click to select a range
3d321f7
start working on processing agent packages
BinaryFissionGames c3d7863
implement (untested) outline for taking package
BinaryFissionGames 509bd37
WIP state
BinaryFissionGames 82bae9c
WIP managing using package manager
BinaryFissionGames 6dd85b4
implement more of packageManager
BinaryFissionGames fe0290b
Fix mismatch interface
BinaryFissionGames 1281e0d
implement update-content
BinaryFissionGames 630dd4b
make signature verification configurable, spec out some of test
BinaryFissionGames fe7423d
add env var to comment
BinaryFissionGames de4701f
Remove duplicate todo
BinaryFissionGames e170f08
return error for creating verification options
BinaryFissionGames 2b01e2a
add comment for singature values
BinaryFissionGames 96cfcb1
Remove TODO
BinaryFissionGames bac146e
err shadowing
BinaryFissionGames 4ac06a5
add some unit test
BinaryFissionGames 2d9842b
iterate on e2e test
BinaryFissionGames 80fa627
fix stop/starting collector
BinaryFissionGames 131d6f0
fix nil not equalling nil
BinaryFissionGames acecb7e
fix copy file
BinaryFissionGames 5a6dcfb
check agent description
BinaryFissionGames 156751e
extract tarball
BinaryFissionGames 0db2e29
fix e2e test
BinaryFissionGames 71530c2
fix import order
BinaryFissionGames 5937254
remove unnecesary else
BinaryFissionGames aa8015e
go.mod should use 1.22.0
BinaryFissionGames 310bdde
comment grammar
BinaryFissionGames 25584ca
re-add todo
BinaryFissionGames a0a6ede
remove commented options in CheckOpts
BinaryFissionGames 1f5cdaa
remove replace
BinaryFissionGames 72c41a5
tidy
BinaryFissionGames 259a755
add chlog
BinaryFissionGames cd2325f
tidy
BinaryFissionGames bb257ad
tidy
BinaryFissionGames cff9db5
Use rekor package for client not cosign
BinaryFissionGames 1eb2289
Calculate hash (hash differs from goos/goarch)
BinaryFissionGames d09b84a
start on documenting the upgrade process
BinaryFissionGames da80a31
fill out more information about signing
BinaryFissionGames 90974b4
add block diagram
BinaryFissionGames 4d40997
add info to README
BinaryFissionGames efd0bcc
add issue to comment for specifying root certs
BinaryFissionGames 0ac7802
remove TODO
BinaryFissionGames 825f43a
remove TODO wait for done in syncer
BinaryFissionGames 86c5b0d
add docs to AgentSignatureIdentity
BinaryFissionGames 418cb97
fix comment for verifyPackageSignature
BinaryFissionGames 54c8669
close gzip reader
BinaryFissionGames 9ce4c80
comment maxAgentBytes
BinaryFissionGames a7e1ea0
use persistent state instead of separate packages state
BinaryFissionGames 578fd6e
fix signature mismatch
BinaryFissionGames 4a22619
remove "v" prefix from version
BinaryFissionGames 5e6b831
dont do healthcheck if healthchecker is nil
dpaasman00 d70b146
get opamp server port before writing initial cfg
dpaasman00 806985d
fix packages tests
dpaasman00 3750f52
fix ci
dpaasman00 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Use this changelog template to create an entry for release notes. | ||
|
||
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' | ||
change_type: enhancement | ||
|
||
# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver) | ||
component: opampsupervisor | ||
|
||
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). | ||
note: "Adds support for agent upgrades" | ||
|
||
# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists. | ||
issues: [34734, 33947] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This should probably be the version/hash of the Collector binary, right? I think the version can be the one obtained during bootstrapping.
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.
Yeah, I think that makes sense. I think the mental hurdle I'm having here is the sort of disconnect between the artifact the agent needs to end up with and what is available from the releases.
Because the release artifact is a tarball, but the agent executable is not, it means that the artifact offered by the server and the one the agent ends up with have completely different hashes. This initial status is kind of a weird edge case.