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

netavark,NetworkUpdate: NetworkUpdateOptions must be IP addresses #1358

Merged

Conversation

flouthoc
Copy link
Collaborator

We enforced NetworkDNSServers to be IP addresses and we follow this enfore rule while a user is creating network, see comment #1237 (review) and PR #1237

Following check was missed in NetworkUpdateOptions hence add this check now.

@flouthoc
Copy link
Collaborator Author

Issue was initially reported by @ypu.

@flouthoc flouthoc requested a review from Luap99 March 10, 2023 12:24
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.

errors should start lowercase, otherwise LGTM

libnetwork/netavark/config.go Outdated Show resolved Hide resolved
libnetwork/netavark/config.go Outdated Show resolved Hide resolved
We enforced NetworkDNSServers to be IP addresses and we follow this
enfore rule while a user is creating network, see comment
containers#1237 (review)
and PR containers#1237

Following check was missed in `NetworkUpdateOptions` hence add this
check now.

Signed-off-by: Aditya R <arajan@redhat.com>
@flouthoc flouthoc force-pushed the network-update-validate-ip branch from 2dc9bb0 to 602f4b0 Compare March 10, 2023 14:11
@flouthoc flouthoc requested a review from Luap99 March 10, 2023 14:12
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 Mar 10, 2023

[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

@rhatdan
Copy link
Member

rhatdan commented Mar 10, 2023

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Mar 10, 2023
@openshift-merge-robot openshift-merge-robot merged commit c2a28e2 into containers:main Mar 10, 2023
@TomSweeneyRedHat
Copy link
Member

@flouthoc where was the issue reported? Can you provide a GitHub or Bugzilla URL please?

@flouthoc
Copy link
Collaborator Author

@TomSweeneyRedHat it was reported in jira RUN-1739 ( in a comment ) I have tagged you there.

@TomSweeneyRedHat
Copy link
Member

Thanks @flouthoc!

flouthoc added a commit to flouthoc/common that referenced this pull request Mar 30, 2023
We enforced NetworkDNSServers to be IP addresses and we follow this
enfore rule while a user is creating network, see comment
containers#1237 (review)
and PR containers#1237

Following check was missed in `NetworkUpdateOptions` hence add this
check now.

Backport of: containers#1358

Signed-off-by: Aditya R <arajan@redhat.com>
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.

5 participants