-
Notifications
You must be signed in to change notification settings - Fork 600
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
Move image to map #8362
Move image to map #8362
Conversation
/assign @dsimansk |
switch { | ||
case source.Spec.Timer != nil: | ||
return sourceImageMap["timer"] | ||
case source.Spec.Aws != nil && source.Spec.Aws.S3 != nil: | ||
return sourceImageMap["aws-s3"] | ||
case source.Spec.Aws != nil && source.Spec.Aws.SQS != nil: | ||
return sourceImageMap["aws-sqs"] | ||
case source.Spec.Aws != nil && source.Spec.Aws.DDBStreams != nil: | ||
return sourceImageMap["aws-ddb-streams"] | ||
default: | ||
return "" |
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 like the nested if-s a bit more, but it's still readable. :)
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
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dsimansk, matzew The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8362 +/- ##
==========================================
+ Coverage 64.26% 64.27% +0.01%
==========================================
Files 389 389
Lines 23281 23276 -5
==========================================
Hits 14961 14961
+ Misses 7526 7521 -5
Partials 794 794 ☔ View full report in Codecov by Sentry. |
/retest |
Signed-off-by: Matthias Wessendorf <[email protected]>
ab4773f
to
d9e8c9b
Compare
/lgtm |
Proposed Changes
Pre-review Checklist
Release Note
Docs