Navigation Menu

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

fix: update the node name label as part of AzureAssignedIdentity update #1161

Merged
merged 1 commit into from Sep 13, 2021

Conversation

aramase
Copy link
Member

@aramase aramase commented Sep 10, 2021

Signed-off-by: Anish Ramasekar anish.ramasekar@gmail.com

Reason for Change:

In case of stateful sets, the pod with the same name could move from one node to another still bound to the same AzureIdentity. Currently in such scenarios, the nodename label in metadata for AzureAssignedIdentity isn't updated to reflect the node change. This will cause token request to fail as NMI has filtered watch based on nodename.

We need to use the old object metadata because resourceVersion needs to be set as part of update. This PR uses the existing object metadata and updates just the labels to latest.

Requirements

  • squashed commits
  • included documentation
  • added unit tests and e2e tests (if applicable). See test standard for more details.
  • ran make precommit

Issue Fixed:

Please answer the following questions with yes/no:

Does this change contain code from or inspired by another project? If so, did you notify the maintainers and provide attribution?

  • yes
  • no

Notes for Reviewers:

@aramase aramase changed the title fix: update the node name label as part of AzureAssignedIdentity update fix: update the node name label as part of AzureAssignedIdentity update Sep 10, 2021
@aramase aramase marked this pull request as ready for review September 10, 2021 23:21
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
@aramase aramase merged commit 478bdab into Azure:master Sep 13, 2021
@aramase aramase deleted the update-metadata-label branch September 13, 2021 18:01
statbit pushed a commit to adobe-platform/aad-pod-identity that referenced this pull request Sep 30, 2021
…te (Azure#1161)

Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants