-
Notifications
You must be signed in to change notification settings - Fork 873
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: unsolicited rollout after upgrade from v0.10->v1.0 when pod was using service account #1367
fix: unsolicited rollout after upgrade from v0.10->v1.0 when pod was using service account #1367
Conversation
…using service account Signed-off-by: Jesse Suen <jesse_suen@intuit.com>
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Codecov Report
@@ Coverage Diff @@
## master #1367 +/- ##
=======================================
Coverage 81.27% 81.27%
=======================================
Files 108 108
Lines 10029 10031 +2
=======================================
+ Hits 8151 8153 +2
Misses 1318 1318
Partials 560 560
Continue to review full report at Codecov.
|
Hi, @jessesuen , I am just wondering what if the existing pod has both serviceAccountName and serviceAccount in the template. Will this PR handle the case properly? Thanks. |
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.
LGTM
First, serviceAccountName and serviceAccount should always be the same value. I just verified that if you try to create a Deployment with different values, serviceAccount will get overridden with value from serviceAccountName. Given that, However, the NOTE for this to happen, ComputeHash would have had to have changed meaning from underneath us. Something which I will address in a v1.1 specific PR. |
…using service account (argoproj#1367) Signed-off-by: Jesse Suen <jesse_suen@intuit.com>
Thanks for the detailed explanation |
Partially fixes #1356
Signed-off-by: Jesse Suen jesse_suen@intuit.com