-
Notifications
You must be signed in to change notification settings - Fork 89
A name and selector MUST NOT be defined together #1005
A name and selector MUST NOT be defined together #1005
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1005 +/- ##
==========================================
+ Coverage 58.03% 58.08% +0.04%
==========================================
Files 29 29
Lines 1642 1646 +4
==========================================
+ Hits 953 956 +3
Misses 563 563
- Partials 126 127 +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.
we should not even allow creating service binding instances that have name and selector defined.
Validation webhooks are our friend here - the check should be implemented there instead.
69798d2
to
7513c72
Compare
Done. |
b36ee8d
to
bf63f79
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.
the checks must exists for both APIs and acceptance tests should verify if they are active.
8bd5b5c
to
4e61c4a
Compare
752e2e9
to
2d52808
Compare
7bf7f38
to
573f8b5
Compare
f17848c
to
3bf4079
Compare
@@ -4,6 +4,7 @@ import ( | |||
"context" | |||
"encoding/base64" | |||
e "errors" | |||
|
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.
nit: whitespace change, please revert.
""" | ||
|
||
@negative | ||
Scenario: Cannot create Service Binding with name and label selector in the spec API |
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.
annotation this scenario with @spec
tag.
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
please squash commits
A name and selector MUST NOT be defined in the same application reference Use webhook to validate Fix redhat-developer#974 Signed-off-by: Baiju Muthukadan <[email protected]>
Done |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: pedjak 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 |
/test 4.7-acceptance |
A name and selector MUST NOT be defined in the same application
reference
Fix #974