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] build nw status with every container interfaces #662

Conversation

pperiyasamy
Copy link
Contributor

This patch is to update nw status with all relevant information
when pod container has secondary interface with its vlan sub
interfaces.

Here is a multi interface use case described in this ovs-cni PR

This PR depends on API changes in network-attachment-definition-client PR

Signed-off-by: Periyasamy Palanisamy periyasamy.palanisamy@est.tech

This patch is to update nw status with all relevant information
when pod container has secondary interface with its vlan sub
interfaces.

Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@est.tech>
@pperiyasamy
Copy link
Contributor Author

/cc @JanScheurich, @phoracek

@dougbtv
Copy link
Member

dougbtv commented Apr 29, 2021

This looks good -- any chance you would mind adding a unit test to check for this status? Thanks!

(edit to add: also realize you've marked this a WIP, sorry for premature ask, too)

if err != nil {
return nil, cmdErr(k8sArgs, "error setting network status: %v", err)
}

netStatus = append(netStatus, *delegateNetStatus)
for _, delegateNetStatus := range delegateNetStatuses {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we just change it to:
netStatus = append(netStatus, delegateNetStatuses...)
and omit loop?

@github-actions
Copy link

This pull request is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale label Sep 16, 2021
@github-actions github-actions bot closed this Sep 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants