-
Notifications
You must be signed in to change notification settings - Fork 89
Introduce id field in service selector to be used as shortcut in custom environment variables #468
Conversation
Skipping CI for Draft Pull Request. |
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.
e2e tests/examples demonstrating the usage of the new field should be added along with the code.
I thought we were skipping this piece since we already had a way to refer to backing services as per #407 - however, it's your call team @redhat-developer/service-binding . I'm good with whatever users and the team feels about this! :)
@isutton do you mean, we are supporting both what was introduced in #407 and what is currently being proposed ? I'm good if that's the case, wanted to check. |
@sbose78 indeed, #407 populated the custom environment variable template context with:
#468 allows the user to specify an alias (the Is this clearer, @sbose78? |
Sounds good, Igor. |
What is target spec for "id" in SBR ? Any change that before. A SBR CR example will be very help. Thank you. |
Codecov Report
@@ Coverage Diff @@
## master #468 +/- ##
==========================================
+ Coverage 64.69% 64.75% +0.06%
==========================================
Files 27 27
Lines 1807 1816 +9
==========================================
+ Hits 1169 1176 +7
- Misses 472 473 +1
- Partials 166 167 +1
Continue to review full report at Codecov.
|
/retest |
1 similar comment
/retest |
@isutton were you able to understand why e2e job is failing on this branch? I see it failing regularly. |
/retest |
/test e2e |
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.
please squash commits and we are good to go
/lgtm |
…om environment variables With the configuration values collection and aggregation solved in redhat-developer#407, this change introduces the id field in backing service selectors to be used as alias while composing custom environment variables. Solves redhat-developer#396 PR redhat-developer#407 has grouped service configuration values in the template context using the following the version, api group, kind and name (for example {{ .v1alpha1.postgresql_baiju_dev.Database.db_testing.status.dbConnection }}). This change groups service configuration values in the template context using the optional id field declared by the user, allowing the user to write {{ .db_testing.status.dbConnection }} instead.
@pedjak force pushed the squashed commits, needs another LGTM. |
/lgtm |
/approve |
[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 |
@isutton Could you include a sample spec in the PR description? |
Motivation
With the configuration values collection and aggregation solved in #407, this change introduces the
id
field in backing service selectors to be used as alias while composing custom environment variables.Solves #396
Changes
#407 has grouped service configuration values in the template context using the following the version, api group, kind and name (for example
{{ .v1alpha1.postgresql_baiju_dev.Database.db_testing.status.dbConnection }}
).This change groups service configuration values in the template context using the optional
id
field declared by the user, allowing the user to write{{ .db_testing.status.dbConnection }}
instead.For further more details refer the CONTRIBUTING.md