Skip to content

Change DNS to pointer in NetConf/Results#1035

Closed
s1061123 wants to merge 1 commit intocontainernetworking:mainfrom
s1061123:dns-pointer
Closed

Change DNS to pointer in NetConf/Results#1035
s1061123 wants to merge 1 commit intocontainernetworking:mainfrom
s1061123:dns-pointer

Conversation

@s1061123
Copy link
Copy Markdown
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
Copy Markdown

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
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

3 participants