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?
We've written a function to pass in the
NoNewKeyringoption on task creation, as follows: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?