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

Fix the backport of #4512 into release-2.2 branch #4590

Merged

Conversation

cnmcavoy
Copy link
Contributor

What type of PR is this?
/kind regression

What this PR does / why we need it: Regression from main branch, backport of #4512 into release-2.2 failed and introduced errors and missed adding a unit test. See conversation on slack by @philjb : https://kubernetes.slack.com/archives/CD6U2V71N/p1697658532510839

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #4511

Special notes for your reviewer:

Checklist:

  • squashed commits
  • includes documentation
  • adds unit tests
  • adds or updates e2e tests

Release note:

Fixed: Additional Tags specified on the AWSCluster will now propagate to root storage volumes.

@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/regression Categorizes issue or PR as related to a regression from a prior release. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-priority labels Oct 25, 2023
@k8s-ci-robot k8s-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Oct 25, 2023
@richardcase
Copy link
Member

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: richardcase

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 Oct 25, 2023
@philjb
Copy link
Contributor

philjb commented Oct 25, 2023

@richardcase @cnmcavoy - how does this work now? Is there a new release of 2.2? aka 2.2.5?

Thanks for making this fix - I'd been meaning to do it. I just yesterday double checked the behavior of main and the 2.2.4 release. 2.2.4 with only the partial cherry pick is broken still with regards to #4512. The code in this PR should fix pushing tags to storage volumes on the 2.2 branch line.

Same thing said differently, based on my (local) testing yesterday, #4512 should not be added to 2.2.4 release notes as the issue isn't fixed there. This pr should fix it in the next release of 2.2.

Copy link
Contributor

@philjb philjb 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 to me.

I tested (tilt based test setup) that someone with a cluster with CAPA 2.2.4 can upgrade to this patch (future 2.2.5) and it works properly. I was concerned that the prevAnnotation annotation might not push tag updates through after upgrades but it does.

EDIT: for more context, prevAnnotations isn't even used when updating tags (which is good - prevents issues with an annotation's state being wrong - but it does mean more API tag requests - on every reconcile i believe); prevAnnotations is used when deciding when to update the annotation which says which tags were last applied.

@richardcase
Copy link
Member

@philjb - once this merges we can thinking about doing a v2.2.5 release.

@richardcase
Copy link
Member

We just need some to review and provide the lgtm

Copy link
Contributor

@AndiDog AndiDog 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 Oct 26, 2023
@k8s-ci-robot k8s-ci-robot merged commit c0fdc9a into kubernetes-sigs:release-2.2 Oct 26, 2023
11 checks passed
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/regression Categorizes issue or PR as related to a regression from a prior release. lgtm "Looks good to me", indicates that a PR is ready to be merged. needs-priority release-note Denotes a PR that will be considered when it comes time to generate release notes. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants