6.6.2. Data model
The data model used in the annotations follows specific conventions.
Service binding annotations must use the following convention:
service.binding(/<NAME>)?:
"<VALUE>|(path=<JSONPATH_TEMPLATE>(,objectType=<OBJECT_TYPE>)?(,elementType=<ELEMENT_TYPE>)?(,sourceKey=<SOURCE_KEY>)?(,sourceValue=<SOURCE_VALUE>)?)"
where:
|
|
Specifies the name under which the binding value is to be exposed. You can exclude it only when the |
|
|
Specifies the constant value exposed when no |
The data model provides the details on the allowed values and semantic for the path, elementType, objectType, sourceKey, and sourceValue parameters.
| Parameter | Description | Default value |
|---|---|---|
|
| JSONPath template that consists JSONPath expressions enclosed by curly braces {}. | N/A |
|
|
Specifies whether the value of the element referenced in the
|
|
|
|
Specifies whether the value of the element indicated in the |
|
|
|
Specifies the key in the Note:
| N/A |
|
|
Specifies the key in the slice of maps. Note:
| N/A |
The sourceKey and sourceValue parameters are applicable only if the element indicated in the path parameter refers to a ConfigMap or Secret resource.