-
Notifications
You must be signed in to change notification settings - Fork 6
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
nad: Skip NADs with empty config #90
Conversation
d6900f4
to
2079f13
Compare
Hi @maiqueb |
@oshoval how can an empty NAD belong to OVN-K ? For a NAD to be associated w/ a plugin, it must feature the name of the plugin in their |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you coalesce this check to a single place ?
of course it shouldn't, i mean just because of a bug (which was the original reason we added it in the first place) |
Until now, a NAD with empty config, was considered invalid, causing an error / rejecting it on the webhook. Istio creates such NADs, so we can't consider them as fatal, once we list all the NADs in a namespace. Otherwise the webhook will block VM creation in case it uses such NAD. Therefore just ignore those. Signed-off-by: Or Shoval <[email protected]>
2079f13
to
71fdb55
Compare
Consolidated (an empty config is robust in the current callers, they will just "continue", each on its own way) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: maiqueb 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 |
I will just issue a release and we make sure it works with it, as it shouldn't be risky |
btw note please that sometimes doing double tag on the same hash cause mistakes on CNAO
|
What this PR does / why we need it:
Until now, a NAD with empty config, was considered invalid,
causing an error / rejecting it on the webhook.
Istio creates such NADs, so we can't consider them as fatal,
once we list all the NADs in a namespace.
Otherwise the webhook will block VM creation [1] in case it uses
such NAD.
Therefore just ignore those.
Example of resource that create such NAD:
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #
Special notes for your reviewer:
Release note: