The .spec.application.containers in ServiceBinding and ServiceBindingProjection is missing normative text
Closed this issue · 2 comments
baijum commented
The ServiceBinding
and ServiceBindingProjection
schema has .spec.application.containers
attribute like this:
spec:
...
application: # PodSpec-able resource ObjectReference-like
...
containers: # []intstr.IntOrString, optional
But there is no normative text that defines its behavior.
scothis commented
🤔 I remember defining this, maybe it got lost in the shuffle, some of those PRs were fairly large and went through a lot of churn...
The intent is to restrict which containers the binding should be injected into. By default, all containers are injected. IntOrString is used to reference a container either by position 0
or by name "user-container"
. The position index only applies to .spec.template.spec.containers[*]
, while a matching name also applies to .spec.template.spec.initContainers[*]
.