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

Look for annotation on NAD to set transfer route #1244

Merged
merged 2 commits into from
Dec 6, 2024

Conversation

mansam
Copy link
Contributor

@mansam mansam commented Dec 3, 2024

The Plan controller will now look for an annotation forklift.konveyor.io/route on the NetworkAttachmentDefinition that was specified as the transfer network for the Plan.

The annotation is expected to have a single IP address as its value, which will be set as the default route when configuring the secondary network on the importer pods.

The annotation is optional, but if it is present then the Plan validator will ensure that its value is a valid IP address.

Replaces #1241

The Plan controller will now look for an annotation
`forklift.konveyor.io/route` on the NetworkAttachmentDefinition
that was specified as the transfer network for the Plan.

The annotation is expected to have a single IP address as its
value, which will be set as the default route when configuring
the secondary network on the importer pods.

The annotation is optional, but if it is present then the
Plan validator will ensure that its value is a valid IP address.

Signed-off-by: Sam Lucidi <slucidi@redhat.com>
@codecov-commenter
Copy link

codecov-commenter commented Dec 3, 2024

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Attention: Patch coverage is 0% with 61 lines in your changes missing coverage. Please review.

Project coverage is 15.61%. Comparing base (7237828) to head (0defc47).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
pkg/controller/plan/kubevirt.go 0.00% 44 Missing ⚠️
pkg/controller/plan/validation.go 0.00% 17 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1244      +/-   ##
==========================================
- Coverage   15.65%   15.61%   -0.04%     
==========================================
  Files         112      112              
  Lines       23130    23188      +58     
==========================================
  Hits         3620     3620              
- Misses      19222    19280      +58     
  Partials      288      288              
Flag Coverage Δ
unittests 15.61% <0.00%> (-0.04%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@mnecas mnecas left a comment

Choose a reason for hiding this comment

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

Yeah right direction but I'm bit worried about backwards compatibility. Could we also support the old multus annotation when the route is not specified?

Signed-off-by: Sam Lucidi <slucidi@redhat.com>
Copy link

sonarqubecloud bot commented Dec 5, 2024

Copy link
Member

@mnecas mnecas left a comment

Choose a reason for hiding this comment

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

LGTM

@mnecas mnecas added this to the 2.7.7 milestone Dec 6, 2024
@mnecas
Copy link
Member

mnecas commented Dec 6, 2024

@mnecas mnecas merged commit 0d0b6cf into kubev2v:main Dec 6, 2024
14 of 15 checks passed
@mnecas mnecas modified the milestones: 2.7.7, 2.7.8 Dec 12, 2024
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