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

vendor: Update runtime-spec package for compatibility with CRI-O #259

Merged
merged 2 commits into from
May 18, 2017

Conversation

sboeuf
Copy link
Collaborator

@sboeuf sboeuf commented May 18, 2017

This PR updates the vendored version of the runtime-spec to v1.0.0-rc5. In order to support both Docker and CRI-O (using different runtime-spec versions), it also introduces a new compatibility structure inheriting from the one defined by runtime-spec.

Global update relying on:
- dep ensure -update
- dep prune

Signed-off-by: Sebastien Boeuf <[email protected]>
@coveralls
Copy link

coveralls commented May 18, 2017

Coverage Status

Coverage remained the same at 66.072% when pulling 6cab732 on sboeuf/compat_runtime-spec_crio into 967d0fb on master.

@sboeuf sboeuf force-pushed the sboeuf/compat_runtime-spec_crio branch from 6cab732 to 644c851 Compare May 18, 2017 05:02
@coveralls
Copy link

coveralls commented May 18, 2017

Coverage Status

Coverage remained the same at 66.072% when pulling 644c851 on sboeuf/compat_runtime-spec_crio into 967d0fb on master.

pkg/oci/utils.go Outdated
@@ -39,6 +39,16 @@ var (
BundlePathKey = "com.github.containers.virtcontainers.pkg.oci.bundle_path"
)

type CompatOCIProcess struct {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand why this is being introduced on a vendoring change? It isn't actively being used so can't (shouldn't?) this be handled on a follow-up PR (along with a new test or two)?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jodh-intel I think @sboeuf is trying to implement a structure that would allow us to be both rc4 and rc5 compatible.
Those compat structures replace the spec.Process ones in the below calls, they are used.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, after some digging I found it.

@sboeuf - it would have been helpful to reference this: opencontainers/runtime-spec#675 and/or opencontainers/runtime-spec@37391fb explicitly.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed. In particular, a mention to opencontainers/runtime-spec@37391fb in a comment would be helpful.
@sboeuf, can you quickly do that to make things a little clearer ?

Copy link
Collaborator

@jodh-intel jodh-intel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

pkg/oci/utils.go Outdated
@@ -39,6 +39,16 @@ var (
BundlePathKey = "com.github.containers.virtcontainers.pkg.oci.bundle_path"
)

type CompatOCIProcess struct {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, after some digging I found it.

@sboeuf - it would have been helpful to reference this: opencontainers/runtime-spec#675 and/or opencontainers/runtime-spec@37391fb explicitly.

This commit updates the vendored version of the runtime-spec to
v1.0.0-rc5. In order to support both Docker and CRI-O (using
different runtime-spec versions), it also introduces a new
compatibility structure inheriting from the one defined by
runtime-spec.

Signed-off-by: Sebastien Boeuf <[email protected]>
@sboeuf sboeuf force-pushed the sboeuf/compat_runtime-spec_crio branch from 644c851 to 449497a Compare May 18, 2017 13:50
@sboeuf
Copy link
Collaborator Author

sboeuf commented May 18, 2017

@sameo @jodh-intel I have added a short explanation as a comment in each Compat structure. Let me know if that's better !

@sameo
Copy link
Collaborator

sameo commented May 18, 2017

@sboeuf One more question: Why do you want to keep the rc4 compatibility ?

@sboeuf
Copy link
Collaborator Author

sboeuf commented May 18, 2017

@sameo Because the config.json given by Docker is relying on this.

@coveralls
Copy link

coveralls commented May 18, 2017

Coverage Status

Coverage remained the same at 66.147% when pulling 449497a on sboeuf/compat_runtime-spec_crio into a3fd661 on master.

@sameo
Copy link
Collaborator

sameo commented May 18, 2017

Makes sense. Docker is based on rc4.

@sameo
Copy link
Collaborator

sameo commented May 18, 2017

LGTM

Approved with PullApprove Approved with PullApprove

@sameo sameo merged commit bcd2693 into master May 18, 2017
@sboeuf sboeuf deleted the sboeuf/compat_runtime-spec_crio branch May 18, 2017 19:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants