-
Notifications
You must be signed in to change notification settings - Fork 885
feat(coderd): store workspace proxy version in the database #10790
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
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.
There's a 169 in the pipeline already, so renaming preemptively
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.
In case of future improvements, we don't expect another version
column? Let's say, protocol version, agent version, foobar version, etc.
|
EDIT: I'm good with |
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.
We need the version field on the codersdk type too right?
coder/codersdk/workspaceproxy.go
Line 61 in 7c4043d
Deleted bool `json:"deleted" table:"deleted"` |
And the convert coder/enterprise/coderd/workspaceproxy.go Line 948 in 7c4043d
|
c526c37
to
2794d5c
Compare
Part of #9558
When workspace proxies come online, they hit the
/register
endpoint with a payload.Part of this payload is the proxy version (
buildinfo.Version
).Right now the
/register
handler performs a check that the major and minor versions match before allowing the registration to complete.This change just adds a database column and updates the stored version with the value reported by workspace proxies.