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

Change DNS to pointer in NetConf/Results #1035

Closed
wants to merge 1 commit into from

Conversation

s1061123
Copy link
Contributor

@s1061123 s1061123 commented Oct 26, 2023

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

@s1061123 s1061123 changed the title Change DNS to pointer in NetConf/Results [WIP]Change DNS to pointer in NetConf/Results Oct 26, 2023
@coveralls
Copy link

Coverage Status

coverage: 71.573%. remained the same when pulling b2a893c on s1061123:dns-pointer into 5968d61 on containernetworking:main.

@s1061123 s1061123 changed the title [WIP]Change DNS to pointer in NetConf/Results Change DNS to pointer in NetConf/Results Oct 26, 2023
@@ -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"`
Copy link
Member

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 :-(.

Copy link
Contributor Author

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!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@squeed create another PR for alternative: #1039 PTAL?

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>
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

3 participants