fix: remove deprecated GetValueFromIntOrPercent method#2586
Conversation
14e0ca2 to
f6e6afc
Compare
|
Kudos, SonarCloud Quality Gate passed!
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #2586 +/- ##
==========================================
+ Coverage 84.92% 84.98% +0.06%
==========================================
Files 166 166
Lines 19047 19047
==========================================
+ Hits 16176 16188 +12
+ Misses 2008 2002 -6
+ Partials 863 857 -6
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Docs from deprecated function: This is a change in behavior that needs to be noted, it is still the correct thing to do because the old behavior is confusing but going to make a BREAKING CHANGE note in the sqash commit to note the behavior change. |
|
Kudos, SonarCloud Quality Gate passed!
|
Signed-off-by: fengshunli <1171313930@qq.com>
|
Published E2E Test Results 4 files 4 suites 3h 30m 28s ⏱️ For more details on these failures, see this check. Results for commit 395d422. |
Published Unit Test Results2 495 tests 2 495 ✅ 3m 20s ⏱️ Results for commit 395d422. |
There was a problem hiding this comment.
The fact that this is a breaking change was already mentioned by Zach and this is obviously very important.
However, I have an additional comment:
While this PR solves the problem itself, it silently consumes the error and never reports back if the user has done a mistake and entered "1" (i.e. an actual string). Or am I missing something here?
I think we should at least follow Argo CD and expose the error to the user
Ideally we should modify ValidateRollout and show a validation error (which is similar to what the standard K8s deployment controller will do)
Otherwise not only we break backwards compability, but we also don't notify existing users that something wrong is happening with their rollout spec.












Signed-off-by: fengshunli 1171313930@qq.com
Checklist:
"fix(controller): Updates such and such. Fixes #1234".