-
Notifications
You must be signed in to change notification settings - Fork 146
spec: clarify relationship between CRM and "apps" #84
Comments
The first issue was clarified in #72. |
@wereHamster I don't think we properly understood your question there; I think we should define (or at least describe) the expected behaviour in the spec. |
I didn't have a question. Just mentioning that the behavior under the condition outlined in the first point was explained in the first comment on #72. That is: the executer should fail. |
@wereHamster right, I think we're on the same page now, that's what this ticket should clear up ;-) |
I am starting to think that what we should tweak the meaning of the "name" (née "app") field: rather than being necessarily equivalent to the name of the image (let's call that the ACI name) it would be a distinct value referring to the app inside the running container (let's call that the CRM app name). We could then mandate in the spec that this field/value be unique within a given container/CRM. + Solves the duplication problem (multiple ACIs with the same
@cdaylward thoughts? |
9aafd97 partially addressed this issue by introducing a new level of naming abstraction (essentially the CRM app name I described above). However it does not yet address the issue of uniqueness. |
Since 9aafd97 landed, app references within a pod gained a name field that is distinct from the name of the underlying image. However, the spec did not address whether this field needed to be unique, which made it unclear as to how to facilitate e.g. multiple apps within a pod using the same image. This makes the name field a) required, and b) unique within a pod. Accordingly, apps in a running pod can now be uniquely, globally identified by the combination of Pod UUID + name. Fixes appc#84
(This is partly leading on from the discussion in rkt/rkt#294)
A Container Runtime Manifest declares one or more apps to be executed. At the time of writing the format of declaration looks like this:
There are several issues with this schema:
This is closely related to, but not the same as, #83
One possible solution is to extend the schema of app references in the CRM to match that of the Image Manifest. In this way, all of the parameters in the Image Manifest could be explicitly overridden at a later stage. However, this does potentially mean a lot of duplication between the information contained in the IM and the CRM.
The text was updated successfully, but these errors were encountered: