-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Change DNS to pointer in NetConf/Results #1035
Conversation
@@ -92,7 +92,7 @@ type Result struct { | |||
Interfaces []*Interface `json:"interfaces,omitempty"` | |||
IPs []*IPConfig `json:"ips,omitempty"` | |||
Routes []*types.Route `json:"routes,omitempty"` | |||
DNS types.DNS `json:"dns,omitempty"` | |||
DNS *types.DNS `json:"dns,omitempty"` |
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.
Unfortunately, we can't change the API here, since it would break upgrades :-(.
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.
OK, I will change the way to keep the structure type in another PRs. thank you for comment!
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.
This commit changes DNS as pointer to remove empty DNS field in Result. This will simplify Result format. This also changes SPEC to mention all keys are optional, other than 'cniVerison'. Signed-off-by: Tomofumi Hayashi <tohayash@redhat.com>
b2a893c
to
eb33180
Compare
This PR changes DNS in NetConf/Results to pointer. This PR contains #1007 and DNS Result change commit.
Plugin repo needs change: containernetworking/plugins#964