servicebinding/spec

The .spec.application.containers in ServiceBinding and ServiceBindingProjection is missing normative text

Closed this issue · 2 comments

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.

🤔 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[*].

I made an attempt to write the description here: #119