Repository navigation
Conversation
Control PanelHi, I'm an AI-powered Review Bot that helps you with summarizing and reviewing pull requests.
|
| <tr> | ||
| <td> | ||
|
|
||
| ```json | ||
| { | ||
| "cds": { | ||
| "requires": { | ||
| "my-service": { | ||
| "vcap": { "tag": "my-tag" } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| ``` | ||
| </td> | ||
| <td> | ||
|
|
||
| ```json | ||
| { | ||
| "user-provided": [ | ||
| { "name": "other-upsi", "tags": ["other-tag"] }, | ||
| { "name": "my-upsi", "tags": ["my-tag"] } | ||
| ] | ||
| } | ||
| ``` | ||
| </td> | ||
| </tr> |
There was a problem hiding this comment.
| <tr> | |
| <td> | |
| ```json | |
| { | |
| "cds": { | |
| "requires": { | |
| "my-service": { | |
| "vcap": { "tag": "my-tag" } | |
| } | |
| } | |
| } | |
| } | |
| ``` | |
| </td> | |
| <td> | |
| ```json | |
| { | |
| "user-provided": [ | |
| { "name": "other-upsi", "tags": ["other-tag"] }, | |
| { "name": "my-upsi", "tags": ["my-tag"] } | |
| ] | |
| } | |
| ``` | |
| </td> | |
| </tr> |
| <tr> | ||
| <td> | ||
|
|
||
| ```json | ||
| { | ||
| "cds": { | ||
| "requires": { | ||
| "my-service": {} | ||
| } | ||
| } | ||
| } | ||
| ``` | ||
| </td> | ||
| <td> | ||
|
|
||
| ```json | ||
| { | ||
| "user-provided": [{ | ||
| "name": "my-service", | ||
| "tags": [] | ||
| }] | ||
| } | ||
| ``` | ||
| </td> | ||
| </tr> | ||
| <tr> | ||
| <td> | ||
|
|
||
| ```json | ||
| { | ||
| "cds": { | ||
| "requires": { | ||
| "my-service": {} | ||
| } | ||
| } | ||
| } | ||
| ``` | ||
| </td> | ||
| <td> | ||
|
|
||
| ```json | ||
| { | ||
| "user-provided": [{ | ||
| "name": "my-upsi", | ||
| "tags": ["cds:my-service"] | ||
| }] | ||
| } | ||
| ``` | ||
| </td> | ||
| </tr> | ||
| <tr> | ||
| <td> | ||
|
|
||
| ```json | ||
| { | ||
| "cds": { | ||
| "requires": { | ||
| "my-service": { | ||
| "kind": "my-kind" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| ``` | ||
| </td> | ||
| <td> | ||
|
|
||
| ```json | ||
| { | ||
| "user-provided": [{ | ||
| "name": "my-upsi", | ||
| "tags": ["my-kind"] | ||
| }] | ||
| } | ||
| ``` | ||
| </td> | ||
| </tr> |
There was a problem hiding this comment.
| <tr> | |
| <td> | |
| ```json | |
| { | |
| "cds": { | |
| "requires": { | |
| "my-service": {} | |
| } | |
| } | |
| } | |
| ``` | |
| </td> | |
| <td> | |
| ```json | |
| { | |
| "user-provided": [{ | |
| "name": "my-service", | |
| "tags": [] | |
| }] | |
| } | |
| ``` | |
| </td> | |
| </tr> | |
| <tr> | |
| <td> | |
| ```json | |
| { | |
| "cds": { | |
| "requires": { | |
| "my-service": {} | |
| } | |
| } | |
| } | |
| ``` | |
| </td> | |
| <td> | |
| ```json | |
| { | |
| "user-provided": [{ | |
| "name": "my-upsi", | |
| "tags": ["cds:my-service"] | |
| }] | |
| } | |
| ``` | |
| </td> | |
| </tr> | |
| <tr> | |
| <td> | |
| ```json | |
| { | |
| "cds": { | |
| "requires": { | |
| "my-service": { | |
| "kind": "my-kind" | |
| } | |
| } | |
| } | |
| } | |
| ``` | |
| </td> | |
| <td> | |
| ```json | |
| { | |
| "user-provided": [{ | |
| "name": "my-upsi", | |
| "tags": ["my-kind"] | |
| }] | |
| } | |
| ``` | |
| </td> | |
| </tr> |
| { | ||
| "user-provided": [{ | ||
| "name": "my-upsi", | ||
| "tags": [] | ||
| }] | ||
| } |
There was a problem hiding this comment.
| { | |
| "user-provided": [{ | |
| "name": "my-upsi", | |
| "tags": [] | |
| }] | |
| } | |
| { | |
| "VCAP_SERVICES": { | |
| "user-provided": [{ | |
| "name": "my-upsi" | |
| }] | |
| } | |
| } |
There was a problem hiding this comment.
@sjvans If you want to point only one option, than it make sense to delete also the clarification:
Because all UPSIs share the same key, matching by kind label or type does not apply — only name and tag matching works. Use an explicit vcap config to override auto-matching
Here the point is that not all rules(1-7) listed above are valid for user-provided case.
There was a problem hiding this comment.
right, it's only rule 7: "The service's vcap.name is matched against the name property". i don't like the tag option because they are not unique → error prone. maybe we say we recommend matching by name above the example?
There was a problem hiding this comment.
but i'd defer to @renejeglinsky and @smahati :)
Co-authored-by: sjvans <30337871+sjvans@users.noreply.github.com>

Fixes: https://github.tools.sap/cap/cdsnode/issues/2899