Skip to content
This repository has been archived by the owner on Apr 3, 2018. It is now read-only.

Don't export PodConfig.ID and ContainerConfig.ID #171

Closed
jodh-intel opened this issue Mar 24, 2017 · 3 comments
Closed

Don't export PodConfig.ID and ContainerConfig.ID #171

jodh-intel opened this issue Mar 24, 2017 · 3 comments
Assignees

Comments

@jodh-intel
Copy link
Collaborator

These fields should be private.

See: #163 (comment).

@sboeuf
Copy link
Collaborator

sboeuf commented Apr 10, 2017

@sameo @jodh-intel Having a second thought at this issue, there is no point in implementing this I think. Virtcontainers is not supposed to generate pod/containers IDs. It is supposed to come from the runtime implementation using virtcontainers. In case of virtc, we want to generate this from virtc.
I think we could close this issue because if we set those fields as private, we have no way to set the pod ID (unless we add a new setter function, but I don't see the point while PodConfig is supposed to describe the configuration).
Let me know your thoughts on this one.

@sameo
Copy link
Collaborator

sameo commented Apr 10, 2017

@sboeuf I think you're right, yes. The pod or container IDs will typically come from the runtime or the orchestration engine (CRI), and we actually should not generate them.
My #163 (comment) was partially wrong, sorry about that @jodh-intel. We still want to verify the validity of the IDs we get and they should either be plain UUIDs or comply with Docker's stringid strings.

@sboeuf
Copy link
Collaborator

sboeuf commented Apr 11, 2017

Ok thanks for confirmation. We can close this one.

@sboeuf sboeuf closed this as completed Apr 11, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants