Skip to content

feat: add ConnectRPC variants for older Agent API versions #13778

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

Merged
merged 1 commit into from
Jul 3, 2024

Conversation

spikecurtis
Copy link
Contributor

@spikecurtis spikecurtis commented Jul 3, 2024

Adds ConnectRPC20 and ConnectRPC21 to the agentsdk Client. These allow you to ask for v2.0 and v2.1 of the Agent API explicitly, for maximum compatibility.

Useful for situations like envbox or envbuilder or kube-logstream which use the agentsdk to talk to Coder Server, but don't know at build time what version of the Coder Server they're talking to. The new RPC in v2.1 doesn't matter for logging use cases.

I haven't added any new tests for these because they're just using the go typechecker to do the heavy lifting.

Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @spikecurtis and the rest of your teammates on Graphite Graphite

@spikecurtis spikecurtis requested review from sreya, coadler and deansheather and removed request for coadler July 3, 2024 11:54
@spikecurtis spikecurtis marked this pull request as ready for review July 3, 2024 11:55
@spikecurtis spikecurtis force-pushed the spike/agentsdk-api-versions branch from 0f09ba5 to ad9ab2f Compare July 3, 2024 11:58
@spikecurtis spikecurtis force-pushed the spike/agentsdk-api-versions branch from ad9ab2f to eb30239 Compare July 3, 2024 12:00
@spikecurtis spikecurtis merged commit f6639b7 into main Jul 3, 2024
28 checks passed
Copy link
Contributor Author

Merge activity

@spikecurtis spikecurtis deleted the spike/agentsdk-api-versions branch July 3, 2024 12:11
@github-actions github-actions bot locked and limited conversation to collaborators Jul 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants