servicebinding / spec

Specification for binding services to k8s workloads
https://servicebinding.io
Apache License 2.0
92 stars 35 forks source link

Number of return values for JSONPath expressions in Application Resource Mapping #172

Closed baijum closed 3 years ago

baijum commented 3 years ago

Application Resource Mapping JSONPath expressions might return 0 or more values in the form of an array. Should the spec add a restriction to ensure exactly one value in the returned array?

If this is the expected behavior, we can add a normative text something like this:

There MUST be exactly one value in the array returned by the JSONPath expressions for each entries of .spec.versions[*].containers, .spec.versions[*].envs, .spec.versions[*].volumeMounts, and the entry for .spec.versions[*].volumes.

baijum commented 3 years ago

Note: Issue #177 is about setting values and this issue is about the JSONPath expression behavior.

baijum commented 3 years ago

Yesterday's meeting confirmed 0 or more values are the expected output.