-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Document sourceValue for replacements.
#5974
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
base: master
Are you sure you want to change the base?
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: VannTen The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
stormqueen1990
left a comment
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.
Hi there, @VannTen! Thanks for your contribution!
I just found a minor typo, other than that LGTM.
/lgtm
| | -----------: | :----: | ----------- | ---- | | ||
| | `source`| ✔️ | The source of the value | | ||
| | `source`| | The source of the value | | ||
| | `sourceValue`| | The litteral value to use as source | |
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.
Very minor: there's an extra "t" in literal here.
| | `sourceValue`| | The litteral value to use as source | | |
| | `sourceValue`| | The literal value to use as source | |
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.
Oh right, not sure how it got there 😆
0bff698 to
479fb24
Compare
|
New changes are detected. LGTM label has been removed. |
| | -----------: | :----: | ----------- | ---- | | ||
| | `source`| ✔️ | The source of the value | | ||
| | `source`| | The source of the value | | ||
| | `sourceValue`| | The literal value to use as source | |
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.
| | `sourceValue`| | The literal value to use as source | | |
| | `sourceValue`| | The literal value to use as the source value | |
| The source field is a selector that determines the source of the value by finding a | ||
| match to the specified GVKNN. All the subfields of `source` are optional, | ||
| but the source selection must resolve to a single resource. | ||
| The source can also be specified directly as a string using `sourceValue`. |
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.
Alternately, instead of selecting and extracting a value from a referenced resource, you can specify a literal string value for the source directly in the sourceValue field.
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.
instead of selecting and extracting a value from a referenced resource
IMO that fragment only repeats the above and does not really help, but I do like the rest of your formulation better.
Co-authored-by: Steven E. Harris <[email protected]>
479fb24 to
2e3df96
Compare
The field was introduced in #5630 but not documented.