API spec: document VM object more thoroughly (#354)

* API spec: document VM object more thoroughly

* Describe hostDirs and signify that it's worker-local in docs
This commit is contained in:
Nikolay Edigaryev
2025-10-06 18:22:57 +04:00
committed by GitHub
parent 875c0753da
commit 6d23548d81
2 changed files with 85 additions and 10 deletions
+2 -2
View File
@@ -67,8 +67,8 @@ func newCreateVMCommand() *cobra.Command {
"startup script (e.g. --startup-script=\"sync\") or a path to a script file prefixed with \"@\" "+
"(e.g. \"--startup-script=@script.sh\")")
command.Flags().StringSliceVar(&hostDirsRaw, "host-dirs", []string{},
"host directories to mount to the VM, can be specified multiple times and/or be comma-separated "+
"(see \"tart run\"'s --dir argument for syntax)")
"directories on the Orchard Worker host to mount to a VM, can be specified multiple times "+
"and/or be comma-separated (see \"tart run\"'s --dir argument for syntax)")
command.Flags().StringVar(&imagePullPolicy, "image-pull-policy", string(v1.ImagePullPolicyIfNotPresent),
fmt.Sprintf("image pull policy for this VM, by default the image is only pulled if it doesn't "+
"exist in the cache (%q), specify %q to always try to pull the image",