mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2024-11-25 13:35:00 +00:00
Allow CDI options to be set by envvars
Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
parent
86dd046c7c
commit
eb2aec9da8
@ -168,12 +168,14 @@ func main() {
|
|||||||
Usage: "the directory where the CDI output files are to be written. If this is set to '', no CDI specification is generated.",
|
Usage: "the directory where the CDI output files are to be written. If this is set to '', no CDI specification is generated.",
|
||||||
Value: "/var/run/cdi",
|
Value: "/var/run/cdi",
|
||||||
Destination: &opts.cdiOutputDir,
|
Destination: &opts.cdiOutputDir,
|
||||||
|
EnvVars: []string{"CDI_OUTPUT_DIR"},
|
||||||
},
|
},
|
||||||
&cli.StringFlag{
|
&cli.StringFlag{
|
||||||
Name: "cdi-kind",
|
Name: "cdi-kind",
|
||||||
Usage: "the vendor string to use for the generated CDI specification",
|
Usage: "the vendor string to use for the generated CDI specification",
|
||||||
Value: "management.nvidia.com/gpu",
|
Value: "management.nvidia.com/gpu",
|
||||||
Destination: &opts.cdiKind,
|
Destination: &opts.cdiKind,
|
||||||
|
EnvVars: []string{"CDI_KIND"},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user