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

Support KubevirtIpamController plugin #1808

Merged
merged 4 commits into from
Jun 24, 2024
Merged

Conversation

oshoval
Copy link
Collaborator

@oshoval oshoval commented Jun 10, 2024

What this PR does / why we need it:
Integrate https://github.com/maiqueb/kubevirt-ipam-claims as CNAO component.
Allows to support IPAM for user defined networks.

Deployment was tested manually on KCLI Openshift cluster.

Special notes for your reviewer:
CRD will be deployed only U/S, on D/S it is deployed by Openshift CNO.
On Openshift, we are using the cert manager that is already deployed,
on upstream the user should install a cert library (done at cluster-up for convenience).

The new lane is using github actions, OVN-K8s kind.sh helper script to create the cluster.
It includes Multus so Multus is not deployed by CNAO on that lane.

Release note:

Support KubevirtIpamController plugin

@kubevirt-bot kubevirt-bot added release-note Denotes a PR that will be considered when it comes time to generate release notes. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. labels Jun 10, 2024
@kubevirt-bot
Copy link
Collaborator

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@kubevirt-bot kubevirt-bot added the dco-signoff: yes Indicates the PR's author has DCO signed all their commits. label Jun 10, 2024
@oshoval oshoval force-pushed the ipam branch 13 times, most recently from c200262 to f1f44b0 Compare June 13, 2024 11:11
@oshoval oshoval marked this pull request as ready for review June 13, 2024 12:04
@oshoval oshoval changed the title WIP Support KubevirtIpamController plugin WIP (dont review yet) Support KubevirtIpamController plugin Jun 13, 2024
@oshoval oshoval marked this pull request as draft June 13, 2024 13:25
@oshoval
Copy link
Collaborator Author

oshoval commented Jun 13, 2024

/test pull-e2e-cluster-network-addons-operator-lifecycle-k8s
/test pull-e2e-cluster-network-addons-operator-workflow-k8s
/test pull-e2e-cnao-kube-secondary-dns-functests
/test pull-cluster-network-addons-operator-unit-test

@oshoval
Copy link
Collaborator Author

oshoval commented Jun 16, 2024

/test pull-e2e-cnao-kube-secondary-dns-functests

locally it doesnt fail, just on CI

@oshoval
Copy link
Collaborator Author

oshoval commented Jun 16, 2024

/test pull-e2e-cluster-network-addons-operator-workflow-k8s
/test pull-e2e-cnao-kube-secondary-dns-functests

Copy link

sonarcloud bot commented Jun 16, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
7.4% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

@kubevirt-bot kubevirt-bot added the lgtm Indicates that a PR is ready to be merged. label Jun 20, 2024
@oshoval
Copy link
Collaborator Author

oshoval commented Jun 20, 2024

/approve

Thanks

@kubevirt-bot kubevirt-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 20, 2024
@qinqon
Copy link
Collaborator

qinqon commented Jun 20, 2024

/lgtm

@oshoval
Copy link
Collaborator Author

oshoval commented Jun 20, 2024

/override pull-e2e-cluster-network-addons-operator-workflow-k8s

happens on clean main as well

@kubevirt-bot
Copy link
Collaborator

@oshoval: Overrode contexts on behalf of oshoval: pull-e2e-cluster-network-addons-operator-workflow-k8s

In response to this:

/override pull-e2e-cluster-network-addons-operator-workflow-k8s

happens on clean main as well

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@oshoval
Copy link
Collaborator Author

oshoval commented Jun 21, 2024

/hold

need to fix lifecycle by deploying cert-manager as it has different flow from glance

@kubevirt-bot kubevirt-bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 21, 2024
@kubevirt-bot
Copy link
Collaborator

New changes are detected. LGTM label has been removed.

@kubevirt-bot kubevirt-bot removed the lgtm Indicates that a PR is ready to be merged. label Jun 23, 2024
@oshoval
Copy link
Collaborator Author

oshoval commented Jun 23, 2024

/hold cancel

checked that all passed on CI on other PR

had to move the cert-manager install as part of cluster-up since also lifecycle needs it
but it is cleaner now

@kubevirt-bot kubevirt-bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 23, 2024
@oshoval
Copy link
Collaborator Author

oshoval commented Jun 23, 2024

/lgtm
/approve

(got 2 lgtms before, and this change is small)

@kubevirt-bot
Copy link
Collaborator

@oshoval: you cannot LGTM your own PR.

In response to this:

/lgtm
/approve

(got 2 lgtms before, and this change is small)

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@kubevirt-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: oshoval

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

@oshoval oshoval requested review from qinqon and maiqueb June 23, 2024 06:32
Without it, we don't have memory to create some virtual machines
(saw it for example on KSD lane).

Signed-off-by: Or Shoval <[email protected]>
Since we introduce a non kubevirtci cluster,
refactor the script to allow code reuse while using
both types of clusters.

All current lanes are agnostic for the change.

Signed-off-by: Or Shoval <[email protected]>
@oshoval
Copy link
Collaborator Author

oshoval commented Jun 23, 2024

just changed readme

@oshoval oshoval added the lgtm Indicates that a PR is ready to be merged. label Jun 24, 2024
@oshoval
Copy link
Collaborator Author

oshoval commented Jun 24, 2024

@kubevirt-bot
Copy link
Collaborator

@oshoval: Overrode contexts on behalf of oshoval: pull-e2e-cluster-network-addons-operator-workflow-k8s

In response to this:

/override pull-e2e-cluster-network-addons-operator-workflow-k8s

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@kubevirt-bot kubevirt-bot merged commit 587dfb3 into kubevirt:main Jun 24, 2024
15 checks passed
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version-file: 'go.mod'
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

btw this is tricky
it takes the one from CNAO's go.mod
and use it as the go version for OVN-K as well

for now it works, it might break in the future and then we will take care about it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. lgtm Indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/XL
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants