cluster-api-provider-cloudstack
cluster-api-provider-cloudstack copied to clipboard
Update to CAPI 1.5
Issue #, if available:
#285 #253
Description of changes:
This PR updates the cluster-api dependency to v1.5.5. It also updates to Go 1.20, updates golang-ci and addresses lint issues caught by the new version (mostly unused variables in function definitions)
Testing performed:
make test test with kind
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Deploy Preview for kubernetes-sigs-cluster-api-cloudstack ready!
| Name | Link |
|---|---|
| Latest commit | 3c0fa5523f2618e0d780dae95b13313c821ab4b2 |
| Latest deploy log | https://app.netlify.com/sites/kubernetes-sigs-cluster-api-cloudstack/deploys/66217253e287780008b8b2e8 |
| Deploy Preview | https://deploy-preview-342--kubernetes-sigs-cluster-api-cloudstack.netlify.app |
| Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
Codecov Report
Attention: 37 lines in your changes are missing coverage. Please review.
Comparison is base (
7fd4146) 25.45% compared to head (6838e34) 25.38%.
:exclamation: Current head 6838e34 differs from pull request most recent head dcdf474. Consider uploading reports for the commit dcdf474 to get more accurate results
Additional details and impacted files
@@ Coverage Diff @@
## main #342 +/- ##
==========================================
- Coverage 25.45% 25.38% -0.08%
==========================================
Files 59 59
Lines 5555 5535 -20
==========================================
- Hits 1414 1405 -9
+ Misses 4002 3990 -12
- Partials 139 140 +1
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
I haven't tested it, but in theory we must upgrade to CAPI 1.5 or whatever may be the latest. I would want to see an easily v0.5 release.
/lgtm
cc @shwstppr we'll need that CI fixed soon 🙏
/run-e2e -c 4.18 let's see if we get anything
/retest
@g-gaston Invalid command: /run-e2e -c 4.18 let's see if we get anything
- Unsupported CloudStack version: 4.18 let's
The command to run e2e test for CAPC.
Usage: /run-e2e [-k Kubernetes_Version] [-c CloudStack_Version] [-h Hypervisor] [-i Template/Image] [-f Kubernetes_Version_Upgrade_From] [-t Kubernetes_Version_Upgrade_To]
- Supported Kubernetes versions are: ['1.27.2', '1.26.5', '1.25.10', '1.24.14', '1.23.3', '1.22.6']. The default value is '1.27.2'.
- Supported CloudStack versions are: ['4.18', '4.17', '4.16']. If it is not set, an existing environment will be used.
- Supported hypervisors are: ['kvm', 'vmware', 'xen']. The default value is 'kvm'.
- Supported templates are: ['ubuntu-2004-kube', 'rockylinux-8-kube']. The default value is 'ubuntu-2004-kube'.
- By default it tests Kubernetes upgrade from version '1.26.5' to '1.27.2'.
Examples:
- /run-e2e
- /run-e2e -k 1.27.2 -h kvm -i ubuntu-2004-kube
- /run-e2e -k 1.27.2 -c 4.18 -h kvm -i ubuntu-2004-kube -f 1.26.5 -t 1.27.2
/run-e2e -c 4.18
@rohityadavcloud a jenkins job has been kicked to run test with following paramaters:
- kubernetes version: 1.27.2
- CloudStack version: 4.18
- hypervisor: kvm
- template: ubuntu-2004-kube
- Kubernetes upgrade from: 1.26.5 to 1.27.2
/test capi-provider-cloudstack-presubmit-e2e-smoke-test
Hi @g-gaston @rohityadavcloud I ran the e2e suit manually to test the CAPI changes. And got a successful run ✅
Not sure why the presubmit is failing, make run-e2e-smoke works for me locally just fine.
/test capi-provider-cloudstack-presubmit-e2e-smoke-test
/run-e2e -c 4.18
@rohityadavcloud a jenkins job has been kicked to run test with following paramaters:
- kubernetes version: 1.27.2
- CloudStack version: 4.18
- hypervisor: kvm
- template: ubuntu-2004-kube
- Kubernetes upgrade from: 1.26.5 to 1.27.2
Thanks for testing @pokearu, @g-gaston @hrak is this ready for merging or need further review/testing? There was also an idea to skip and move to CAPI 1.6 ?
[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: hrak Once this PR has been reviewed and has the lgtm label, please ask for approval from rohityadavcloud. For more information see the Kubernetes Code Review Process.
The full list of commands accepted by this bot can be found here.
Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment
@rohityadavcloud looks like the failing presubmit is due to the version of KinD being installed.
https://github.com/kubernetes-sigs/cluster-api-provider-cloudstack/blob/main/hack/ensure-kind.sh#L22
I think this needs to be increased to v0.20.0 to match with CAPI 1.5.5
/run-e2e -c 4.18 /lgtm
@rohityadavcloud Invalid command: /run-e2e -c 4.18 /lgtm
- Unsupported CloudStack version: 4.18 /lgtm
The command to run e2e test for CAPC.
Usage: /run-e2e [-k Kubernetes_Version] [-c CloudStack_Version] [-h Hypervisor] [-i Template/Image] [-f Kubernetes_Version_Upgrade_From] [-t Kubernetes_Version_Upgrade_To]
- Supported Kubernetes versions are: ['1.27.2', '1.26.5', '1.25.10', '1.24.14', '1.23.3', '1.22.6']. The default value is '1.27.2'.
- Supported CloudStack versions are: ['4.18', '4.17', '4.16']. If it is not set, an existing environment will be used.
- Supported hypervisors are: ['kvm', 'vmware', 'xen']. The default value is 'kvm'.
- Supported templates are: ['ubuntu-2004-kube', 'rockylinux-8-kube']. The default value is 'ubuntu-2004-kube'.
- By default it tests Kubernetes upgrade from version '1.26.5' to '1.27.2'.
Examples:
- /run-e2e
- /run-e2e -k 1.27.2 -h kvm -i ubuntu-2004-kube
- /run-e2e -k 1.27.2 -c 4.18 -h kvm -i ubuntu-2004-kube -f 1.26.5 -t 1.27.2
@blueorangutan: changing LGTM is restricted to collaborators
In response to this:
@rohityadavcloud Invalid command: /run-e2e -c 4.18 /lgtm
- Unsupported CloudStack version: 4.18 /lgtm
The command to run e2e test for CAPC.
Usage: /run-e2e [-k Kubernetes_Version] [-c CloudStack_Version] [-h Hypervisor] [-i Template/Image] [-f Kubernetes_Version_Upgrade_From] [-t Kubernetes_Version_Upgrade_To]
- Supported Kubernetes versions are: ['1.27.2', '1.26.5', '1.25.10', '1.24.14', '1.23.3', '1.22.6']. The default value is '1.27.2'.
- Supported CloudStack versions are: ['4.18', '4.17', '4.16']. If it is not set, an existing environment will be used.
- Supported hypervisors are: ['kvm', 'vmware', 'xen']. The default value is 'kvm'.
- Supported templates are: ['ubuntu-2004-kube', 'rockylinux-8-kube']. The default value is 'ubuntu-2004-kube'.
- By default it tests Kubernetes upgrade from version '1.26.5' to '1.27.2'.
Examples:
- /run-e2e
- /run-e2e -k 1.27.2 -h kvm -i ubuntu-2004-kube
- /run-e2e -k 1.27.2 -c 4.18 -h kvm -i ubuntu-2004-kube -f 1.26.5 -t 1.27.2
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.
PR needs rebase.
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.
@hrak great job! I added one small commit to fix the presubmits, just bumping the kind version I will try to review the rest of the code this week
Hi @hrak - @g-gaston has advised me to try to get this PR in the next release, could you help rebase/address conflicts and any outstanding review remarks? Thanks.
/uncc @chrisdoherty4
New changes are detected. LGTM label has been removed.
PR updated for CAPI v1.5.8. Sorry for the delay.
@hrak there are some unresolved comments by @g-gaston. Can you please address/resolve them?
PR needs rebase.
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.
This PR has some conflicts and some comments needs to be addressed/resolved. Changing milestone for this PR to v0.6.0 for now.
Hi, I'm sorry I haven't been able to dedicate much time on this lately cause I'm swamped in launching our k8s product at work. I will update the PR when i have some time.