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

libnetwork: extend API to support NetworkUpdate #1249

Merged

Conversation

flouthoc
Copy link
Collaborator

@flouthoc flouthoc commented Dec 1, 2022

New features in netavark/aardvark allows users to update network dns servers and all the containers attached to those networks uses updated resolvers.

Following PR adds support in libnetwork to support

@flouthoc flouthoc force-pushed the network-dns-update-api branch 2 times, most recently from 094d3ef to 5c77d6c Compare December 1, 2022 04:07
@flouthoc flouthoc requested a review from Luap99 December 1, 2022 11:54
@flouthoc
Copy link
Collaborator Author

flouthoc commented Dec 1, 2022

@Luap99 PTAL

libnetwork/netavark/config.go Outdated Show resolved Hide resolved
libnetwork/netavark/config.go Outdated Show resolved Hide resolved
libnetwork/netavark/config.go Outdated Show resolved Hide resolved
libnetwork/netavark/config.go Outdated Show resolved Hide resolved
libnetwork/netavark/config.go Outdated Show resolved Hide resolved
libnetwork/netavark/config.go Outdated Show resolved Hide resolved
libnetwork/netavark/run.go Outdated Show resolved Hide resolved
@flouthoc flouthoc force-pushed the network-dns-update-api branch 2 times, most recently from 03f9b1e to ea17a7e Compare December 2, 2022 05:49
@flouthoc flouthoc requested a review from Luap99 December 2, 2022 06:00
@flouthoc flouthoc force-pushed the network-dns-update-api branch from ea17a7e to f714653 Compare December 3, 2022 07:58
libnetwork/netavark/run.go Outdated Show resolved Hide resolved
libnetwork/netavark/config_test.go Outdated Show resolved Hide resolved
libnetwork/netavark/config_test.go Outdated Show resolved Hide resolved
libnetwork/netavark/config_test.go Outdated Show resolved Hide resolved
libnetwork/netavark/config.go Outdated Show resolved Hide resolved
@flouthoc flouthoc force-pushed the network-dns-update-api branch from f714653 to db42c65 Compare December 6, 2022 07:00
@flouthoc flouthoc requested a review from Luap99 December 6, 2022 11:04
@rhatdan
Copy link
Member

rhatdan commented Dec 6, 2022

Needs a rebase.

@flouthoc flouthoc force-pushed the network-dns-update-api branch 2 times, most recently from f69f85c to b62be2b Compare December 6, 2022 15:30
Copy link
Member

@Luap99 Luap99 left a comment

Choose a reason for hiding this comment

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

LGTM

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Dec 6, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: flouthoc, Luap99

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved label Dec 6, 2022
@flouthoc
Copy link
Collaborator Author

flouthoc commented Dec 6, 2022

@containers/podman-maintainers PTAL

New features in netavark/aardvark allows users to update network dns
servers and all the containers attached to those networks uses updated
resolvers.

Following PR adds support in `libnetwork` to support

* Add support for higher level `NetworkUpdate` API
* Add support for `Update` exec call which can invoke netavark with a
  new update option added here: containers/netavark#503

Signed-off-by: Aditya R <arajan@redhat.com>
@flouthoc flouthoc force-pushed the network-dns-update-api branch from b62be2b to 403bec6 Compare December 7, 2022 02:23
@flouthoc
Copy link
Collaborator Author

flouthoc commented Dec 7, 2022

Weird network errors in CI

@flouthoc
Copy link
Collaborator Author

flouthoc commented Dec 7, 2022

@containers/podman-maintainers PTAL and merge.

@@ -19,6 +20,65 @@ import (
"github.com/containers/storage/pkg/stringid"
)

func sliceRemoveDuplicates(strList []string) []string {
Copy link
Member

Choose a reason for hiding this comment

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

This function might be more useful in pkg/util.
Not blocking

@rhatdan
Copy link
Member

rhatdan commented Dec 7, 2022

/lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants