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
Validate Sink in SourceSpec #2384
Validate Sink in SourceSpec #2384
Conversation
The `Sink` in `SourceSpec` is required. Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
Codecov Report
@@ Coverage Diff @@
## main #2384 +/- ##
==========================================
- Coverage 63.33% 63.33% -0.01%
==========================================
Files 226 226
Lines 9779 9782 +3
==========================================
+ Hits 6194 6195 +1
- Misses 3306 3307 +1
- Partials 279 280 +1
Continue to review full report at Codecov.
|
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.
looking good.
Co-authored-by: Pablo Mercado <pablo@triggermesh.com>
/lgtm |
/assign @evankanderson @julz |
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.
One nit.
This is also an API change; it seems reasonable because a Source object without a destination seems nonsensical to me.
}, { | ||
name: "empty source ceOverrides extensions validation", | ||
src: &Source{Spec: SourceSpec{ | ||
Sink: Destination{ | ||
URI: func() *apis.URL { |
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.
How about apis.HTTP("localhost")
?
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: evankanderson, odacremolbap, pierDipi 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 |
Sink
inSourceSpec
is required.sink
field usingDestination.Validate(ctx)