Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support the new hook types of newer oci spec #9

Closed

Conversation

solarkennedy
Copy link

This adds support for the new hooks that deprecate prestart in newer versions of containerd:

  • createContainer
  • createRuntime
  • startContainer

Note that you need to be on container runtime that supports
the OCI runtime spec >= v1.0.2 to manipulate these hooks,
so I didn't add it into the README, but at least this tool will understand them if present.

Relates to opencontainers/runtime-spec#1008

cc @alban

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

This adds support for the new hooks that deprecate prestart:

* createContainer
* createRuntime
* startContainer

Note that you need to be on container runtime that supports
the OCI runtime spec >= v1.0.2 to manipulate these hooks,
so I didn't add it into the README.
@samuelkarp
Copy link

Hi @solarkennedy, thanks for opening this PR! When I look at the diff though, the only things I see changed are .gitignore, a new Go version specified in go.mod, and a newline added in hook.go; were there other changes that you were intending to make that got missed?

@solarkennedy
Copy link
Author

Whoops! I was comparing my branch to my fork's master.
This was already done in #7
Nothing to see here :)

@solarkennedy solarkennedy deleted the new_hooks_new_spec branch December 8, 2020 03:22
@samuelkarp
Copy link

Thanks @solarkennedy!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants