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

Bump CAPI to v1.6.0 #4182

Merged
merged 1 commit into from
Dec 12, 2023
Merged

Conversation

mboersma
Copy link
Contributor

@mboersma mboersma commented Oct 26, 2023

What type of PR is this?

/kind cleanup

What this PR does / why we need it:

Updates CAPI to v1.6.0 and all that entails.

Which issue(s) this PR fixes:

Fixes #4179

Special notes for your reviewer:

See the migration guide for information on the changes still needed. I'll update this soon. Edit: updated.

  • cherry-pick candidate

TODOs:

  • squashed commits
  • includes documentation
  • adds unit tests

Release note:

Bump CAPI to v1.6.0

@k8s-ci-robot k8s-ci-robot 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. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Oct 26, 2023
@k8s-ci-robot k8s-ci-robot added the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label Oct 26, 2023
@mboersma mboersma added this to the v1.12 milestone Oct 26, 2023
@mboersma mboersma added the priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. label Oct 26, 2023
@codecov
Copy link

codecov bot commented Oct 26, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (f1020e4) 60.89% compared to head (703a98b) 60.88%.
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4182      +/-   ##
==========================================
- Coverage   60.89%   60.88%   -0.02%     
==========================================
  Files         190      190              
  Lines       18983    18983              
==========================================
- Hits        11559    11557       -2     
- Misses       6787     6789       +2     
  Partials      637      637              

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

@willie-yao
Copy link
Contributor

Can you add "Fixes #4179" to the PR description?

@mboersma mboersma force-pushed the capi-1.6-incoming branch 2 times, most recently from a095a41 to c5d9373 Compare October 31, 2023 22:34
@mboersma
Copy link
Contributor Author

mboersma commented Nov 1, 2023

/retitle [WIP] Bump CAPI to v1.6.0-beta.1

@k8s-ci-robot k8s-ci-robot changed the title [WIP] Bump CAPI to v1.6.0-beta.0 [WIP] Bump CAPI to v1.6.0-beta.1 Nov 1, 2023
@mboersma mboersma self-assigned this Nov 2, 2023
@mboersma
Copy link
Contributor Author

mboersma commented Nov 2, 2023

/retest

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 4, 2023
main.go Outdated Show resolved Hide resolved
@mboersma mboersma force-pushed the capi-1.6-incoming branch 2 times, most recently from bf3d257 to 7b0159f Compare November 6, 2023 21:06
@mboersma mboersma removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 6, 2023
@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 8, 2023
@mboersma
Copy link
Contributor Author

mboersma commented Dec 6, 2023

@CecileRobertMichon had pointed out:

We should resolve this TODO as part of the bump to 1.6: https://github.com/kubernetes-sigs/cluster-api-provider-azure/pull/4155/files#diff-d9eb31526af707f3d2dce573325c8fa31a1bd228821de366d45f88992a1d6a33R69

I made an attempt at fixing this with @willie-yao but didn't get it working. I can try again, or I can fix it in a separate PR.

@mboersma
Copy link
Contributor Author

mboersma commented Dec 6, 2023

I can try again, or I can fix it in a separate PR.

I think I got it this time: a3d8384

@mboersma
Copy link
Contributor Author

mboersma commented Dec 7, 2023

I think we should also bump cert-manager to v1.13.2 (in this PR or immediately afterward). See kubernetes-sigs/cluster-api@9ee475f

Edit: done.

@@ -475,6 +475,7 @@ generate-manifests: $(CONTROLLER_GEN) ## Generate manifests e.g. CRD, RBAC etc.
output:webhook:dir=$(WEBHOOK_ROOT) \
webhook
$(CONTROLLER_GEN) \
paths=./ \
Copy link
Contributor

Choose a reason for hiding this comment

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

why the added path here?

Copy link
Contributor

Choose a reason for hiding this comment

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

main.go now includes some kubebuilder annotations for RBAC related to the secure metrics endpoint changes in kubernetes-sigs/cluster-api#9264 so this probably should have been added before in #4248.

// Add RBAC for the authorized diagnostics endpoint.
// +kubebuilder:rbac:groups=authentication.k8s.io,resources=tokenreviews,verbs=create
// +kubebuilder:rbac:groups=authorization.k8s.io,resources=subjectaccessreviews,verbs=create

Eventually(func(g Gomega) {
err = mgmtClient.Get(ctx, types.NamespacedName{
Namespace: input.Cluster.Namespace,
Name: input.Cluster.Name + "-pool0",
Namespace: clusterClass.Spec.Workers.MachinePools[0].Template.Infrastructure.Ref.Namespace,
Copy link
Contributor

Choose a reason for hiding this comment

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

could we range over the MachinePools and use the index instead of hardcoding to 0 here?

Copy link
Contributor

@nojnhuh nojnhuh left a comment

Choose a reason for hiding this comment

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

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 8, 2023
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: c3cb6a57a693b1add1bb1068c3fe46e57f64f3e2

@mboersma
Copy link
Contributor Author

mboersma commented Dec 8, 2023

/retest

@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 11, 2023
@k8s-ci-robot k8s-ci-robot requested a review from nojnhuh December 11, 2023 21:10
@nojnhuh
Copy link
Contributor

nojnhuh commented Dec 11, 2023

@mboersma Was your last push just a rebase with no (or trivial) merge conflicts?

@mboersma
Copy link
Contributor Author

Was your last push just a rebase?

Yes, just to resolve a conflict in go.sum that probably arose because of dependabot PRs.

Copy link
Contributor

@CecileRobertMichon CecileRobertMichon left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 11, 2023
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 082999cd2a3c34ded239d42debf2f21efdb08797

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: CecileRobertMichon

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 11, 2023
@nojnhuh
Copy link
Contributor

nojnhuh commented Dec 12, 2023

/retest

@k8s-ci-robot k8s-ci-robot merged commit f382ce2 into kubernetes-sigs:main Dec 12, 2023
29 checks passed
@mboersma mboersma deleted the capi-1.6-incoming branch December 12, 2023 14:54
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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm "Looks good to me", indicates that a PR is ready to be merged. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

CAPI v1.6.0-beta.0 has been released and is ready for testing
7 participants