-
Notifications
You must be signed in to change notification settings - Fork 30
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
Merge annotations from desired with existing ones in the ServiceAccounts #969
Conversation
Signed-off-by: Ruben Vargas <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #969 +/- ##
==========================================
- Coverage 73.36% 73.36% -0.01%
==========================================
Files 105 105
Lines 6488 6487 -1
==========================================
- Hits 4760 4759 -1
Misses 1438 1438
Partials 290 290
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Signed-off-by: Ruben Vargas <[email protected]>
@andreasgerstmayr This PR only verifies if the SA exists or not in order to determine if needs to be recreated. Do you think we need a more sophisticated way to validate this? Because currently our SAs are very simple. |
Tested on OCP 4.16
|
Signed-off-by: Ruben Vargas <[email protected]>
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.
Great work!
I think for this PR we only need to remove this line: tempo-operator/internal/manifests/mutate.go Line 184 in 76bfab6
Or something like tempo-operator/internal/manifests/mutate.go Line 172 in 76bfab6
|
Not sure if that will work, I think other things are added to the SA not just the annotation. Anyway I'm gonna check this in the morning. If this simple approach work I don't see why not using it. |
Ill switch this solution to use those mutation functions that @andreasgerstmayr is mentioning. This PR is still rudimentary because it is only for demostrate the problem |
This did the trick. :)
|
Co-authored-by: Israel Blancas <[email protected]>
Co-authored-by: Israel Blancas <[email protected]>
Signed-off-by: Ruben Vargas <[email protected]>
Signed-off-by: Ruben Vargas <[email protected]>
Fixes #970