-
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
55
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
55 commits
Select commit
Hold shift + click to select a range
504bc68
start working on processing agent packages
BinaryFissionGames f5f75c3
implement (untested) outline for taking package
BinaryFissionGames f25425c
WIP state
BinaryFissionGames 1ad5d33
WIP managing using package manager
BinaryFissionGames 4fbdc99
implement more of packageManager
BinaryFissionGames d087728
Fix mismatch interface
BinaryFissionGames 301ebc4
implement update-content
BinaryFissionGames a1133bb
make signature verification configurable, spec out some of test
BinaryFissionGames f981d4b
add env var to comment
BinaryFissionGames efa226b
Remove duplicate todo
BinaryFissionGames 4af3091
return error for creating verification options
BinaryFissionGames 913f150
add comment for singature values
BinaryFissionGames 9549385
Remove TODO
BinaryFissionGames 72879ab
err shadowing
BinaryFissionGames 6a9ff98
add some unit test
BinaryFissionGames ac63e9e
iterate on e2e test
BinaryFissionGames 4d2c44e
fix stop/starting collector
BinaryFissionGames 29addf4
fix nil not equalling nil
BinaryFissionGames f4b2ea6
fix copy file
BinaryFissionGames 05ea57e
check agent description
BinaryFissionGames 13a9bc0
extract tarball
BinaryFissionGames 83d0cf5
fix e2e test
BinaryFissionGames 1f19ca1
fix import order
BinaryFissionGames c5c48c4
remove unnecesary else
BinaryFissionGames b98a6fd
go.mod should use 1.22.0
BinaryFissionGames 3895474
comment grammar
BinaryFissionGames 9d6187d
re-add todo
BinaryFissionGames 4dfd9e8
remove commented options in CheckOpts
BinaryFissionGames 36d0773
add chlog
BinaryFissionGames fd5b504
tidy
BinaryFissionGames 2682b4c
tidy
BinaryFissionGames 118b7db
Use rekor package for client not cosign
BinaryFissionGames 966372d
Calculate hash (hash differs from goos/goarch)
BinaryFissionGames f6e87b8
start on documenting the upgrade process
BinaryFissionGames 179db69
fill out more information about signing
BinaryFissionGames 17cb1b6
add block diagram
BinaryFissionGames e9f8252
add info to README
BinaryFissionGames f020c1a
add issue to comment for specifying root certs
BinaryFissionGames 12e48b5
remove TODO
BinaryFissionGames e190a47
remove TODO wait for done in syncer
BinaryFissionGames ae4c81e
add docs to AgentSignatureIdentity
BinaryFissionGames 09764c7
fix comment for verifyPackageSignature
BinaryFissionGames ed63804
close gzip reader
BinaryFissionGames c8afd02
comment maxAgentBytes
BinaryFissionGames 68abd02
use persistent state instead of separate packages state
BinaryFissionGames 2bea3f5
fix signature mismatch
BinaryFissionGames 0eac913
remove "v" prefix from version
BinaryFissionGames 64ab5bc
dont do healthcheck if healthchecker is nil
dpaasman00 1e70c9d
get opamp server port before writing initial cfg
dpaasman00 e9bbecc
fix packages tests
dpaasman00 c0cc631
fix ci
dpaasman00 e095324
fix e2e test
dpaasman00 c9329aa
remove duplicate opampclient mock func
dpaasman00 09cbad2
fix issue link, add better comments, use binpb, mv agent binaries ins…
dpaasman00 2dfd7cd
fix lint, e2e test, unittests
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.