Skip to content
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

[WIP] Change meaning of UUID field, add VPNKitKey field #120

Merged
merged 1 commit into from Apr 12, 2017

Conversation

errordeveloper
Copy link
Contributor

@errordeveloper errordeveloper commented Apr 12, 2017

We have missused UUID filed for VPNKit, and not the -U flag which it naturally maps to.

It seems reasonably to leave it up to the caller how they wish to generate UUIDs.

This is a breaking change, hence I marked it WIP (so it doesn't gets merged too soon), and the biggest question question is how should we communicate this change to those who depend on these bindings?

@errordeveloper errordeveloper changed the title Change meaning of UUID field, add VPNKitKey field [WIP] Change meaning of UUID field, add VPNKitKey field Apr 12, 2017
go/hyperkit.go Outdated
@@ -69,7 +69,9 @@ type HyperKit struct {
StateDir string `json:"state_dir"`
// VPNKitSock is the location of the VPNKit socket used for networking.
VPNKitSock string `json:"vpnkit_sock"`
// UUID is a string containing a UUID for the VM. It can be used in conjunction with VPNKit to get consistent IP address.
// VPNKitKey is a string containing a UUID, it can be used in conjunction with VPNKit to get consistent IP address.
VPNKitKey string `json:"uuid"`
Copy link
Collaborator

Choose a reason for hiding this comment

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

json should be vpnkit_key I think. No idea what happens with the duplicated names!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, I've missed that!

We have missused UUID filed for VPNKit, and not the `-U` flag which
it naturally maps to.
@ijc
Copy link
Collaborator

ijc commented Apr 12, 2017

LGTM, these bindings are pretty new so no need to worry about making breaking just yet.

In the future it might be nice to generate a UUID if the caller doesn't supply one.

Copy link
Member

@rn rn left a comment

Choose a reason for hiding this comment

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

LGTM

@rn rn merged commit 9b5f5fd into moby:master Apr 12, 2017
@errordeveloper errordeveloper deleted the uuid branch April 12, 2017 15:48
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.

None yet

4 participants