-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Issue #2339 - Controller should compare with latest git revision if app has changed #2543
Issue #2339 - Controller should compare with latest git revision if app has changed #2543
Conversation
50c4818
to
28aad8a
Compare
Codecov Report
@@ Coverage Diff @@
## master #2543 +/- ##
==========================================
- Coverage 38.09% 38.03% -0.06%
==========================================
Files 114 114
Lines 15838 15834 -4
==========================================
- Hits 6033 6023 -10
- Misses 9021 9032 +11
+ Partials 784 779 -5
Continue to review full report at Codecov.
|
@@ -601,6 +601,22 @@ func TestNeedRefreshAppStatus(t *testing.T) { | |||
assert.Equal(t, argoappv1.RefreshTypeHard, refreshType) | |||
assert.Equal(t, CompareWithLatest, compareWith) | |||
} | |||
|
|||
{ |
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.
can you comment what this test is doing please?
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.
done
app := app.DeepCopy() | ||
ctrl.requestAppRefresh(app.Name, ComparisonWithNothing) | ||
app.Spec.Source.Helm = &argoappv1.ApplicationSourceHelm{ | ||
Parameters: []argoappv1.HelmParameter{{ |
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.
do you need this parameters?
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.
yes. added comment which explains the change
28aad8a
to
b78cfa0
Compare
…ion if app has changed
b78cfa0
to
efaaac5
Compare
Checklist: