-
Notifications
You must be signed in to change notification settings - Fork 561
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
[release-2.2] cherry-pick: Fix cluster-api-provider-last-applied-tags-on-volumes to recalculate the value on each reconcile #4535
Conversation
…the annotation value each reconcile instead of reusing the previous value
e838fd8
to
409d73c
Compare
cc @cnmcavoy |
/milestone v2.2.3 |
[APPROVALNOTIFIER] This PR is APPROVED Approval requirements bypassed by manually added approval. This pull-request has been approved by: 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 |
cc @Skarlso @richardcase for LGTM |
/lgtm |
for _, volumeID := range instance.VolumeIDs { | ||
if subAnnotation, ok := annotations[volumeID].(map[string]interface{}); ok { | ||
newAnnotation, err := r.ensureVolumeTags(ec2svc, aws.String(volumeID), subAnnotation, machine.Spec.AdditionalTags) | ||
newAnnotation, err := r.ensureVolumeTags(ec2svc, aws.String(volumeID), subAnnotation, additionalTags) |
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.
the other side of this else was also supposed to be changed if #4512 was pulled in fully (that line and the test from that pr were not pulled in). This means release 2.2.4 contains some unapproved combination of code.
see https://github.com/kubernetes-sigs/cluster-api-provider-aws/pull/4512/files#r1369368660
What type of PR is this?
/kind bug
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):cherry-pick of #4531
Special notes for your reviewer:
Checklist:
Release note: