-
Notifications
You must be signed in to change notification settings - Fork 880
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
Initial analysis controller implementation #168
Conversation
Codecov Report
@@ Coverage Diff @@
## master #168 +/- ##
==========================================
- Coverage 82.83% 81.91% -0.93%
==========================================
Files 27 29 +2
Lines 2587 2848 +261
==========================================
+ Hits 2143 2333 +190
- Misses 316 379 +63
- Partials 128 136 +8
Continue to review full report at Codecov.
|
0eb059f
to
11f276b
Compare
11f276b
to
f052c77
Compare
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.
I have a couple of questions, but I think it looks good!
// TODO(jessesuen): may need to tweak this logic | ||
if metric.Count > 0 && result.Count >= metric.Count { | ||
var status v1alpha1.AnalysisStatus | ||
if result.Successful > result.Inconclusive { |
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.
I'm still a little worried that this is a little "magical" to users. I'm not sure users would expect this to be the behavior
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.
I agree this may not be expected. I'm open to changing this, thus the TODO.
Addressed comments. PTAL. Will leave the TODOs open for improvement later. |
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
Initial AnalysisRun controller logic. Reconcilation does not do anything yet -- need provider interfaces to continue further.