List all VMs and VMIs objects in KubeVirt
$ export GO111MODULE=on
$ go build
first you need to export an environment variable KUBECONFIG
pointing to your kubernetes config, where KubeVirt is installed.
$ export KUBECONFIG=/home/<user>/.kubeconfig
$ ./listvms
Type Name Namespace Status
VirtualMachine vm-cirros default true
VirtualMachineInstance vm-cirros default Running