-
Notifications
You must be signed in to change notification settings - Fork 249
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
Add new guest request/resource packages #1240
Conversation
7c8126b
to
70bd009
Compare
01af0d4
to
e68ec36
Compare
What's the motivation behind exporting these packages? I think we benefit from not worrying about breaking changes. |
Recently I just found myself copy-pasting the same definitions in 2 places while working on PoC for hash device on a separate VHD. Additionally, after merging opengcs into hcsshim this felt like a tech debt. Maybe exporting the definitions is an overkill, but I'd at least like to make sure that gcs and hcsshim are using the same ones.
You mean with the current implementation or with the proposed one? |
With the current implementation it's all unexported so we can change whatever we want. I think merging the definitions into a single package is a great idea, but would rather not export it unless we really have to. Basically, my hope is that no one else ever has to interact with the bridge protocol, so we can treat it as an implementation detail rather than exporting definitions. |
ah, yeah, that makes sense. Thanks for clarification. |
d1a5a71
to
07ce960
Compare
07ce960
to
f691d3c
Compare
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.
lgtm
fbe4167
to
ea37e5f
Compare
hcsshim and GCS redefine protocol messages. Any change to the protocol requires redifinitions in both hcsshim and GCS. This PR combines the two protocol definitions into one to resolve this. Create new guestrequest and guestresource internal packages and update references in code. Signed-off-by: Maksim An <maksiman@microsoft.com>
Do not export guestrequest and guestresource packages and rather keep them under internal/protocol. Signed-off-by: Maksim An <maksiman@microsoft.com>
Signed-off-by: Maksim An <maksiman@microsoft.com>
Signed-off-by: Maksim An <maksiman@microsoft.com>
Signed-off-by: Maksim An <maksiman@microsoft.com>
02a7b0c
to
438fe16
Compare
When consolidating guest protocol into its own package in microsoft#1240 wrong constant definition was used for adding a network namespace. Fix this by using the correct constants. Signed-off-by: Maksim An <maksiman@microsoft.com>
When consolidating guest protocol into its own package in #1240 wrong constant definition was used for adding a network namespace. Fix this by using the correct constants. Signed-off-by: Maksim An <maksiman@microsoft.com>
Move guestrequest and requesttype packages from internal to
exported guestrequest and guestresource packages.
Update hcsshim and gcs to use the new guestrequest and
guestresource packages
Signed-off-by: Maksim An maksiman@microsoft.com