-
Notifications
You must be signed in to change notification settings - Fork 39
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
[sled-agent] turn API into a trait #6159
Merged
sunshowers
merged 6 commits into
main
from
sunshowers/spr/sled-agent-turn-api-into-a-trait
Aug 13, 2024
Merged
[sled-agent] turn API into a trait #6159
sunshowers
merged 6 commits into
main
from
sunshowers/spr/sled-agent-turn-api-into-a-trait
Aug 13, 2024
Conversation
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
Created using spr 1.3.6-beta.1
Going to defer this until #5749 lands. (Also need to fix up the illumos build.) |
Created using spr 1.3.6-beta.1 [skip ci]
Created using spr 1.3.6-beta.1
sunshowers
changed the base branch from
main
to
sunshowers/spr/main.sled-agent-turn-api-into-a-trait
August 10, 2024 20:39
Created using spr 1.3.6-beta.1
sunshowers
added a commit
that referenced
this pull request
Aug 12, 2024
Previously, we would carry around a DNS resolver -- however, the resolver has been unused for a while. And in fact there's a warning about being careful around using it. Because the type was public, the rustc dead code detector didn't figure that out until my change to switch to an API trait in #6159 exposed this. Remove `NexusClientWithResolver`, adding a couple of free functions to make a `NexusClient` instead.
sunshowers
changed the base branch from
sunshowers/spr/main.sled-agent-turn-api-into-a-trait
to
main
August 12, 2024 18:35
Created using spr 1.3.6-beta.1
andrewjstone
approved these changes
Aug 13, 2024
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.
Epic work @sunshowers. Thank you so much.
Created using spr 1.3.6-beta.1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Building on the changes in #6138, this PR turns the sled-agent API into a trait. This is
high-impact because it currently is part of a circular dependency with the
Nexus internal API -- this PR gets us to the point where the OpenAPI documents
can be generated independently of each other.
There is some code movement but there are no functional changes in this PR -- I
didn't use
replace
here to keep the PR small. I'll try outreplace
for someof the types with
From
impls in a subsequent PR.(I did change the internal
VpcFirewallRule
toResolvedVpcFirewallRule
tomatch the other types in the destination file.)
I've also added some documentation about when
nexus-sled-agent-shared
shouldbe used.
Depends on #6283.