Skip to content
This repository was archived by the owner on Oct 10, 2023. It is now read-only.

Bump CAPI core to v1beta1#927

Merged
saimanoj01 merged 3 commits intovmware-tanzu:mainfrom
saimanoj01:capi_v1beta1
Nov 5, 2021
Merged

Bump CAPI core to v1beta1#927
saimanoj01 merged 3 commits intovmware-tanzu:mainfrom
saimanoj01:capi_v1beta1

Conversation

@saimanoj01
Copy link
Copy Markdown
Contributor

@saimanoj01 saimanoj01 commented Oct 19, 2021

What this PR does / why we need it

We will need to do this in order to bump k8s version to 1.22. Kubernetes 1.22 will not be capable of being lifecycled by v1alpha3 components.

Which issue(s) this PR fixes

Fixes #936, #654

Describe testing done for PR

  • Created management clusters on vSphere, Azure and AWS infrastructures.
  • Verified upgrading the management clusters from TKG 1.4.
  • Successfully created workload clusters on all supporting infrastructures.

Release note

bump capi core to v1beta1

- update capi/capa/capz/capv to v1.0.0
- update controller-runtime to v0.10.2
- rename --metrics-addr to --metrics-bind-addr and --leader-election to --leader-elect to align with cluster-api for addons-manager

PR Checklist

  • Squash the commits into one or a small number of logical commits
  • Use good commit messages
  • Ensure PR contains terms all contributors can understand and links all contributors can access

Additional information

Special notes for your reviewer

@github-actions
Copy link
Copy Markdown

Cluster Generation A/B Results:
https://storage.googleapis.com/tkg-clustergen/927/20211020174422/clustergen.diff.txt
Author/reviewers:
Please review to verify that the effects on the generated cluster configurations are exactly what the PR intended, and give a thumbs-up if so.

@github-actions
Copy link
Copy Markdown

Cluster Generation A/B Results:
https://storage.googleapis.com/tkg-clustergen/927/20211020185658/clustergen.diff.txt
Author/reviewers:
Please review to verify that the effects on the generated cluster configurations are exactly what the PR intended, and give a thumbs-up if so.

@github-actions
Copy link
Copy Markdown

Cluster Generation A/B Results:
https://storage.googleapis.com/tkg-clustergen/927/20211020210453/clustergen.diff.txt
Author/reviewers:
Please review to verify that the effects on the generated cluster configurations are exactly what the PR intended, and give a thumbs-up if so.

@github-actions
Copy link
Copy Markdown

Cluster Generation A/B Results:
https://storage.googleapis.com/tkg-clustergen/927/20211020224846/clustergen.diff.txt
Author/reviewers:
Please review to verify that the effects on the generated cluster configurations are exactly what the PR intended, and give a thumbs-up if so.

@randomvariable randomvariable mentioned this pull request Oct 20, 2021
11 tasks
@github-actions
Copy link
Copy Markdown

Cluster Generation A/B Results:
https://storage.googleapis.com/tkg-clustergen/927/20211021001706/clustergen.diff.txt
Author/reviewers:
Please review to verify that the effects on the generated cluster configurations are exactly what the PR intended, and give a thumbs-up if so.

@github-actions
Copy link
Copy Markdown

Cluster Generation A/B Results:
https://storage.googleapis.com/tkg-clustergen/927/20211021012815/clustergen.diff.txt
Author/reviewers:
Please review to verify that the effects on the generated cluster configurations are exactly what the PR intended, and give a thumbs-up if so.

@github-actions
Copy link
Copy Markdown

Cluster Generation A/B Results:
https://storage.googleapis.com/tkg-clustergen/927/20211021070620/clustergen.diff.txt
Author/reviewers:
Please review to verify that the effects on the generated cluster configurations are exactly what the PR intended, and give a thumbs-up if so.

@github-actions
Copy link
Copy Markdown

Cluster Generation A/B Results:
https://storage.googleapis.com/tkg-clustergen/927/20211021192210/clustergen.diff.txt
Author/reviewers:
Please review to verify that the effects on the generated cluster configurations are exactly what the PR intended, and give a thumbs-up if so.

@github-actions
Copy link
Copy Markdown

Cluster Generation A/B Results:
https://storage.googleapis.com/tkg-clustergen/927/20211022044855/clustergen.diff.txt
Author/reviewers:
Please review to verify that the effects on the generated cluster configurations are exactly what the PR intended, and give a thumbs-up if so.

@github-actions
Copy link
Copy Markdown

Cluster Generation A/B Results:
https://storage.googleapis.com/tkg-clustergen/927/20211026004046/clustergen.diff.txt
Author/reviewers:
Please review to verify that the effects on the generated cluster configurations are exactly what the PR intended, and give a thumbs-up if so.

@github-actions
Copy link
Copy Markdown

Cluster Generation A/B Results:
https://storage.googleapis.com/tkg-clustergen/927/20211028061535/clustergen.diff.txt
Author/reviewers:
Please review to verify that the effects on the generated cluster configurations are exactly what the PR intended, and give a thumbs-up if so.

@github-actions
Copy link
Copy Markdown

Cluster Generation A/B Results:
https://storage.googleapis.com/tkg-clustergen/927/20211028062243/clustergen.diff.txt
Author/reviewers:
Please review to verify that the effects on the generated cluster configurations are exactly what the PR intended, and give a thumbs-up if so.

@github-actions
Copy link
Copy Markdown

Cluster Generation A/B Results:
https://storage.googleapis.com/tkg-clustergen/927/20211030010108/clustergen.diff.txt
Author/reviewers:
Please review to verify that the effects on the generated cluster configurations are exactly what the PR intended, and give a thumbs-up if so.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Nov 1, 2021

Cluster Generation A/B Results:
https://storage.googleapis.com/tkg-clustergen/927/20211101120249/clustergen.diff.txt
Author/reviewers:
Please review to verify that the effects on the generated cluster configurations are exactly what the PR intended, and give a thumbs-up if so.

@saimanoj01
Copy link
Copy Markdown
Contributor Author

//usebom:sandbox/v1.5.0-zshippable/379567558421927594/tkg-compatibility

@github-actions
Copy link
Copy Markdown

github-actions bot commented Nov 1, 2021

Cluster Generation A/B Results:
https://storage.googleapis.com/tkg-clustergen/927/20211101185129/clustergen.diff.txt
Author/reviewers:
Please review to verify that the effects on the generated cluster configurations are exactly what the PR intended, and give a thumbs-up if so.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Nov 1, 2021

Cluster Generation A/B Results:
https://storage.googleapis.com/tkg-clustergen/927/20211101190053/clustergen.diff.txt
Author/reviewers:
Please review to verify that the effects on the generated cluster configurations are exactly what the PR intended, and give a thumbs-up if so.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Nov 2, 2021

Cluster Generation A/B Results:
https://storage.googleapis.com/tkg-clustergen/927/20211102010243/clustergen.diff.txt
Author/reviewers:
Please review to verify that the effects on the generated cluster configurations are exactly what the PR intended, and give a thumbs-up if so.

@saimanoj01
Copy link
Copy Markdown
Contributor Author

//usebom:sandbox/v1.5.0-zshippable/379670967577783610/tkg-compatibility

@saimanoj01 saimanoj01 marked this pull request as ready for review November 2, 2021 18:48
@saimanoj01 saimanoj01 requested review from a team and prkalle as code owners November 2, 2021 18:48
@saimanoj01 saimanoj01 requested a review from a team November 2, 2021 18:48
Copy link
Copy Markdown
Contributor

@imikushin imikushin left a comment

Choose a reason for hiding this comment

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

A few mostly minor comments. Otherwise looks good!

A change like this (transitioning between Cluster API versions) can only be done in one big bang, so kudos for the hard work!

Appreciate the amount of effort that went into this. Let's resolve the comments and get this in!

Copy link
Copy Markdown
Contributor

@vijaykatam vijaykatam left a comment

Choose a reason for hiding this comment

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

Looks good overall. Minor comments.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Nov 3, 2021

Cluster Generation A/B Results:
https://storage.googleapis.com/tkg-clustergen/927/20211103195230/clustergen.diff.txt
Author/reviewers:
Please review to verify that the effects on the generated cluster configurations are exactly what the PR intended, and give a thumbs-up if so.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Nov 3, 2021

Cluster Generation A/B Results:
https://storage.googleapis.com/tkg-clustergen/927/20211103205736/clustergen.diff.txt
Author/reviewers:
Please review to verify that the effects on the generated cluster configurations are exactly what the PR intended, and give a thumbs-up if so.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Nov 3, 2021

Cluster Generation A/B Results:
https://storage.googleapis.com/tkg-clustergen/927/20211103211015/clustergen.diff.txt
Author/reviewers:
Please review to verify that the effects on the generated cluster configurations are exactly what the PR intended, and give a thumbs-up if so.

@saimanoj01
Copy link
Copy Markdown
Contributor Author

//usebom:sandbox/v1.5.0-zshippable/379911975624294967/tkg-compatibility

Copy link
Copy Markdown
Contributor

@prkalle prkalle left a comment

Choose a reason for hiding this comment

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

Thank you for the changes, huge effort!! The changes look good to me with one comment.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Nov 3, 2021

Cluster Generation A/B Results:
https://storage.googleapis.com/tkg-clustergen/927/20211103230423/clustergen.diff.txt
Author/reviewers:
Please review to verify that the effects on the generated cluster configurations are exactly what the PR intended, and give a thumbs-up if so.

@danniel1205 danniel1205 added the ok-to-merge PRs should be labelled with this before merging label Nov 3, 2021
@github-actions
Copy link
Copy Markdown

github-actions bot commented Nov 3, 2021

Cluster Generation A/B Results:
https://storage.googleapis.com/tkg-clustergen/927/20211103233352/clustergen.diff.txt
Author/reviewers:
Please review to verify that the effects on the generated cluster configurations are exactly what the PR intended, and give a thumbs-up if so.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Nov 4, 2021

Cluster Generation A/B Results:
https://storage.googleapis.com/tkg-clustergen/927/20211104054418/clustergen.diff.txt
Author/reviewers:
Please review to verify that the effects on the generated cluster configurations are exactly what the PR intended, and give a thumbs-up if so.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Nov 4, 2021

Cluster Generation A/B Results:
https://storage.googleapis.com/tkg-clustergen/927/20211104063450/clustergen.diff.txt
Author/reviewers:
Please review to verify that the effects on the generated cluster configurations are exactly what the PR intended, and give a thumbs-up if so.

Copy link
Copy Markdown

@rajathagasthya rajathagasthya left a comment

Choose a reason for hiding this comment

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

Just a couple of minor, non-blocking comments. Thanks for the changes, this is a lot of effort!

@github-actions
Copy link
Copy Markdown

github-actions bot commented Nov 4, 2021

Cluster Generation A/B Results:
https://storage.googleapis.com/tkg-clustergen/927/20211104183336/clustergen.diff.txt
Author/reviewers:
Please review to verify that the effects on the generated cluster configurations are exactly what the PR intended, and give a thumbs-up if so.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Nov 4, 2021

Cluster Generation A/B Results:
https://storage.googleapis.com/tkg-clustergen/927/20211104184319/clustergen.diff.txt
Author/reviewers:
Please review to verify that the effects on the generated cluster configurations are exactly what the PR intended, and give a thumbs-up if so.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Nov 4, 2021

Cluster Generation A/B Results:
https://storage.googleapis.com/tkg-clustergen/927/20211104185654/clustergen.diff.txt
Author/reviewers:
Please review to verify that the effects on the generated cluster configurations are exactly what the PR intended, and give a thumbs-up if so.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Nov 4, 2021

Cluster Generation A/B Results:
https://storage.googleapis.com/tkg-clustergen/927/20211104191912/clustergen.diff.txt
Author/reviewers:
Please review to verify that the effects on the generated cluster configurations are exactly what the PR intended, and give a thumbs-up if so.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Nov 4, 2021

Cluster Generation A/B Results:
https://storage.googleapis.com/tkg-clustergen/927/20211104194512/clustergen.diff.txt
Author/reviewers:
Please review to verify that the effects on the generated cluster configurations are exactly what the PR intended, and give a thumbs-up if so.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Nov 4, 2021

Cluster Generation A/B Results:
https://storage.googleapis.com/tkg-clustergen/927/20211104195701/clustergen.diff.txt
Author/reviewers:
Please review to verify that the effects on the generated cluster configurations are exactly what the PR intended, and give a thumbs-up if so.

Copy link
Copy Markdown
Contributor

@danniel1205 danniel1205 left a comment

Choose a reason for hiding this comment

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

Reviewed addons component. LGTM

@github-actions
Copy link
Copy Markdown

github-actions bot commented Nov 4, 2021

Cluster Generation A/B Results:
https://storage.googleapis.com/tkg-clustergen/927/20211104210230/clustergen.diff.txt
Author/reviewers:
Please review to verify that the effects on the generated cluster configurations are exactly what the PR intended, and give a thumbs-up if so.

@saimanoj01 saimanoj01 requested a review from imikushin November 4, 2021 21:46
Copy link
Copy Markdown
Contributor

@imikushin imikushin left a comment

Choose a reason for hiding this comment

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

Looks good!

@github-actions
Copy link
Copy Markdown

github-actions bot commented Nov 4, 2021

Cluster Generation A/B Results:
https://storage.googleapis.com/tkg-clustergen/927/20211104215406/clustergen.diff.txt
Author/reviewers:
Please review to verify that the effects on the generated cluster configurations are exactly what the PR intended, and give a thumbs-up if so.

Copy link
Copy Markdown
Contributor

@tenczar tenczar left a comment

Choose a reason for hiding this comment

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

LGTM. I think the changes from 0.7.11 made it into 1.0.1 is that your understanding as well? If not, we will have a regression from 1.4.1 to 1.5

@@ -139,7 +144,6 @@ spec:
- diskSizeGB: 256
lun: 0
nameSuffix: etcddisk
location: ${AZURE_LOCATION}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I noticed that this location property has been removed from the various AzureMachineTemplate in our ytt templates. I assume this means that it isn't need (should be provided in the MachineDeployment anyway)

saimanoj01 and others added 3 commits November 5, 2021 01:21
- change addons-manager to adopt cluster-api v1beta1
- bump controller-runtime version to align with cluster-api
- fix the addons integ tests by updating the way how kubeconfig is generated. This change is required to make latest envtest work.

Signed-off-by: Daniel Guo <danniel1205@gmail.com>
@github-actions
Copy link
Copy Markdown

github-actions bot commented Nov 5, 2021

Cluster Generation A/B Results:
https://storage.googleapis.com/tkg-clustergen/927/20211105083622/clustergen.diff.txt
Author/reviewers:
Please review to verify that the effects on the generated cluster configurations are exactly what the PR intended, and give a thumbs-up if so.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla-not-required ok-to-merge PRs should be labelled with this before merging

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update to Cluster API v1.0.0

9 participants