-
Notifications
You must be signed in to change notification settings - Fork 296
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
🌱 Update Cluster API IPAM version from v1alpha1 to v1beta1 #2751
🌱 Update Cluster API IPAM version from v1alpha1 to v1beta1 #2751
Conversation
Welcome @PavanNeerudu! |
Hi @PavanNeerudu. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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/test-infra repository. |
cf72307
to
ca44820
Compare
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.
/ok-to-test
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.
Thanks for the PR, looks straight forward :-)
Some smaller nits.
@@ -25,7 +25,7 @@ import ( | |||
corev1 "k8s.io/api/core/v1" | |||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | |||
apitypes "k8s.io/apimachinery/pkg/types" | |||
ipamv1a1 "sigs.k8s.io/cluster-api/exp/ipam/api/v1alpha1" | |||
ipamv1b1 "sigs.k8s.io/cluster-api/exp/ipam/api/v1beta1" |
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.
please rename this to ipamv1
, maybe worth enforcing this via .golangci.yml
like we already do for other apis?
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.
Yeah, sure. Added a rule to .golangci.yml as well.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2751 +/- ##
==========================================
- Coverage 64.26% 63.99% -0.27%
==========================================
Files 160 160
Lines 9338 9338
==========================================
- Hits 6001 5976 -25
- Misses 2886 2904 +18
- Partials 451 458 +7 ☔ View full report in Codecov by Sentry. |
test/framework/ip/incluster.go
Outdated
@@ -39,7 +39,7 @@ import ( | |||
"k8s.io/client-go/tools/clientcmd" | |||
"k8s.io/klog/v2" | |||
"k8s.io/utils/ptr" | |||
ipamv1 "sigs.k8s.io/cluster-api/exp/ipam/api/v1alpha1" | |||
ipamv1 "sigs.k8s.io/cluster-api/exp/ipam/api/v1beta1" |
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.
Maybe we need to keep the old api group for now for the test code, because in CI v1beta1 is not yet deployed (it is only used for IPAM and thus may be not up to date.
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.
Yes, makes sense. I was just looking at why the tests were failing and how the testing framework is constructed. Thanks!
/test pull-cluster-api-provider-vsphere-test-main Unrelated flake, which gets hopefully fixed in: |
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.
Thanks for the PR!
/lgtm
Waiting @chrischdi for another review and approval.
LGTM label has been added. Git tree hash: ac1529614a8c8dbb414a9206f8f6dac676ac6139
|
Because we don't have any e2e test covering ipam: have you been able to give the implementation a try to create a cluster using IPAM? |
We now have a proper test (via #2757) :-) /test pull-cluster-api-provider-vsphere-e2e-main |
Test is green 🎉 Thanks for contributing this! /tide merge-method squash |
/label tide/merge-method-squash |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: chrischdi 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 |
/retest flake |
What this PR does / why we need it:
While working with the CAPV, I noticed that the IPAM version used is still v1alpha1. This is despite the fact that the IPAM types have been promoted to v1beta1 in the cluster-api. Additionally, the first release of the Cluster API IPAM provider in-cluster uses v1beta1, leading to an inconsistency in the versions used.
Which issue(s) this PR fixes:
Fixes #2750