Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat: Allow workspace resources to attach multiple agents #942

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
Apr 11, 2022

Conversation

kylecarbs
Copy link
Member

This enables a "kubernetes_pod" to attach multiple agents that
could be for multiple services. Each agent is required to have
a unique name, so SSH syntax is:

coder ssh <workspace>.<agent>

A resource can have zero agents too, they aren't required.

@kylecarbs kylecarbs requested review from coadler and f0ssel April 9, 2022 01:03
@codecov
Copy link

codecov bot commented Apr 9, 2022

Codecov Report

Merging #942 (3ad0766) into main (38f0742) will decrease coverage by 0.09%.
The diff coverage is 62.91%.

@@            Coverage Diff             @@
##             main     #942      +/-   ##
==========================================
- Coverage   65.78%   65.68%   -0.10%     
==========================================
  Files         226      228       +2     
  Lines       13991    14178     +187     
  Branches      105      105              
==========================================
+ Hits         9204     9313     +109     
- Misses       3848     3909      +61     
- Partials      939      956      +17     
Flag Coverage Δ
unittest-go-macos-latest 52.60% <42.55%> (-0.37%) ⬇️
unittest-go-postgres- 65.48% <62.31%> (-0.17%) ⬇️
unittest-go-ubuntu-latest 55.27% <54.25%> (+0.02%) ⬆️
unittest-go-windows-2022 51.70% <42.24%> (-0.47%) ⬇️
unittest-js 58.25% <ø> (ø)
Impacted Files Coverage Δ
cli/templates.go 54.23% <0.00%> (ø)
cli/workspaceshow.go 50.00% <ø> (+35.71%) ⬆️
codersdk/workspaceresources.go 45.45% <ø> (-11.54%) ⬇️
cli/configssh.go 54.86% <6.25%> (-3.17%) ⬇️
coderd/httpmw/workspaceagentparam.go 30.88% <30.88%> (ø)
cli/ssh.go 38.88% <42.85%> (-0.96%) ⬇️
coderd/workspaceresources.go 28.94% <50.00%> (-32.03%) ⬇️
coderd/provisionerjobs.go 63.43% <55.55%> (+1.50%) ⬆️
codersdk/workspaceagents.go 52.60% <57.89%> (ø)
coderd/workspaceagents.go 66.98% <66.98%> (ø)
... and 23 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 38f0742...3ad0766. Read the comment docs.

@kylecarbs kylecarbs force-pushed the updatetfprovider branch 6 times, most recently from e8258ea to 0682aa6 Compare April 9, 2022 18:43
This enables a "kubernetes_pod" to attach multiple agents that
could be for multiple services. Each agent is required to have
a unique name, so SSH syntax is:

`coder ssh <workspace>.<agent>`

A resource can have zero agents too, they aren't required.
@kylecarbs kylecarbs self-assigned this Apr 10, 2022
Copy link
Contributor

@f0ssel f0ssel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not the most robust review given the size but everything seem good to me

@kylecarbs kylecarbs merged commit 19b4323 into main Apr 11, 2022
@kylecarbs kylecarbs deleted the updatetfprovider branch April 11, 2022 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants