Skip to content

chore(annotation): do not clobber existing annotations#26

Merged
Jose-Matsuda merged 3 commits intomasterfrom
fix-annotation
Mar 10, 2025
Merged

chore(annotation): do not clobber existing annotations#26
Jose-Matsuda merged 3 commits intomasterfrom
fix-annotation

Conversation

@Jose-Matsuda
Copy link
Copy Markdown
Collaborator

@Jose-Matsuda Jose-Matsuda commented Mar 6, 2025

For BTIS-874
related to StatCan/kubeflow#246

Previously the annotation was not being propagated, this screenshot is from the kerberos sidecar injector but it uses the same logic so we will need to port it there as well.

Also removed an extraneous variable / annotation and combined it.
Using: 61e89f5b03d393bcca846ed71dbfcb72a82d172e

@Jose-Matsuda
Copy link
Copy Markdown
Collaborator Author

Jose-Matsuda commented Mar 6, 2025

Using the above tag i was able to observe the success;
image

Where the STS has the annotation on it; will verify that it works for multiple shares
image

Added an extra share and it is still working as expected, there are no duplicate annotations or anything

Comment thread cmd/webhook.go
Copy link
Copy Markdown
Collaborator

@Souheil-Yazji Souheil-Yazji left a comment

Choose a reason for hiding this comment

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

LGTM

@Jose-Matsuda Jose-Matsuda merged commit 8546880 into master Mar 10, 2025
1 check passed
@Jose-Matsuda Jose-Matsuda deleted the fix-annotation branch March 10, 2025 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants