Skip to content

PR Task CreateOptions for NoNewKeyring #2360

@ostenbom

Description

@ostenbom

We've written a function to pass in the NoNewKeyring option on task creation, as follows:

func WithNoNewKeyring(ctx context.Context, c *containerd.Client, ti *containerd.TaskInfo) error {
	ti.Options = &runctypes.CreateOptions{NoNewKeyring: true}
	return nil
}

Currently this function lives in our code base, but we thought it could be valuable to have as part of the containerd task_opts. I.e. Similar to these functions in task_opts.go.

Is this sort of thing something you'd be interested in getting PRs for? Or is the idea that consumers can define their own function as and when they need them?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions