Refactor: Change variable name from "vm" to "vmi"
"vm" variable in virt-launcher.go's main function
is renamed into "vmi". The type of this variable is
VirtualMachineInstance and therefore "vm" name is
mieleading.
@@ -312,7 +312,7 @@ func main() {
name := pflag.String("name", "", "Name of the VirtualMachineInstance")
uid := pflag.String("uid", "", "UID of the VirtualMachineInstance")
namespace := pflag.String("namespace", "", "Namespace of the VirtualMachineInstance")
- gracePeriodSeconds := pflag.Int("grace-period-seconds", 30, "Grace period to observe before sending SIGTERM to vm process")
+ gracePeriodSeconds := pflag.Int("grace-period-seconds", 30, "Grace period to observe before sending SIGTERM to vmi process")
useEmulation := pflag.Bool("use-emulation", false, "Use software emulation")
hookSidecars := pflag.Uint("hook-sidecars", 0, "Number of requested hook sidecars, virt-launcher will wait for all of them to become available")
noFork := pflag.Bool("no-fork", false, "Fork and let virt-launcher watch itself to react to crashes if set to false")
