-
-
Notifications
You must be signed in to change notification settings - Fork 126
feat: oneshot agent install tokens #796
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
Conversation
74e1383 to
8fe6d45
Compare
8fe6d45 to
387dac6
Compare
polaroi8d
left a comment
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.
Not tested yet, add some questions and reviews. I started commenting on all Golang error handling but after a few I stopped, we start sentences with lowercase letters.
web/crux/prisma/migrations/20230807153730_oneshot_agent_token/migration.sql
Show resolved
Hide resolved
web/crux/src/app/agent/connection-strategies/agent.connection.strategy.ts
Outdated
Show resolved
Hide resolved
|
When I attempted to update my currently running agent, I encountered a segmentation violation. |
I have found the problem. Looks like in |
|
@polaroi8d Pushed the fixes for the legacy agent update. Also be aware of that the agents are force pulling, so they are going to overwrite your locally built image during the updating process. :( |
Codecov ReportPatch coverage:
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the GitHub App Integration for your organization. Read more. Additional details and impacted files@@ Coverage Diff @@
## develop #796 +/- ##
===========================================
- Coverage 25.46% 24.13% -1.34%
===========================================
Files 60 62 +2
Lines 5709 5954 +245
===========================================
- Hits 1454 1437 -17
- Misses 4152 4411 +259
- Partials 103 106 +3
☔ View full report in Codecov by Sentry. |
49258d5 to
6e761b0
Compare
6e761b0 to
db6915c
Compare
robot9706
left a comment
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.
🏗
nandor-magyar
left a comment
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.
Noted small things, otherwise looks good, tested in Kubernetes, it works.
Thanks. |
Rework agent connection handling. From now on there are two types of tokens.
GRPC_TOKENenv. They exchange it on the first run to a connection token.During an update, agents gets a new token.
Also there is a workaround for legacy agents, whom are getting shutdown and removed by the newly updated agent, so they do not stuck in a crashloop.