Skip to content

Add nvidia Opts to lookup containerd binary or hook path#2512

Merged
mlaventure merged 1 commit intocontainerd:masterfrom
crosbymichael:gpupath
Jul 31, 2018
Merged

Add nvidia Opts to lookup containerd binary or hook path#2512
mlaventure merged 1 commit intocontainerd:masterfrom
crosbymichael:gpupath

Conversation

@crosbymichael
Copy link
Copy Markdown
Member

This is for consumers like Docker that manage a docker-containerd.

Signed-off-by: Michael Crosby [email protected]

This is for consumers like Docker that manage a `docker-containerd`.

Signed-off-by: Michael Crosby <[email protected]>
@codecov-io
Copy link
Copy Markdown

Codecov Report

Merging #2512 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2512   +/-   ##
=======================================
  Coverage   44.99%   44.99%           
=======================================
  Files          93       93           
  Lines        9585     9585           
=======================================
  Hits         4313     4313           
  Misses       4577     4577           
  Partials      695      695
Flag Coverage Δ
#linux 49.02% <ø> (ø) ⬆️
#windows 41.4% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c55b963...e4f33dc. Read the comment docs.

@ehazlett
Copy link
Copy Markdown
Member

LGTM

Copy link
Copy Markdown
Member

@estesp estesp left a comment

Choose a reason for hiding this comment

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

LGTM

Comment thread contrib/nvidia/nvidia.go
}

// WithLookupOCIHookPath sets the hook path for the binary via a binary name
func WithLookupOCIHookPath(name string) Opts {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Any reason not to do LookPath all the time and avoid 2 options?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

options are cheap

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

😹

Sure, but with lookup path at least they know they have an error early, no?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

i mean, don't give a path if you don't know the path, else use the lookup opt

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yeah, I got it, I'm just considering the PBKAC. But I guess options don't cost a thing

Copy link
Copy Markdown
Contributor

@mlaventure mlaventure left a comment

Choose a reason for hiding this comment

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

LGTM

@mlaventure mlaventure merged commit 875b92c into containerd:master Jul 31, 2018
@crosbymichael crosbymichael deleted the gpupath branch July 31, 2018 17:11
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.

5 participants