Skip to content

Commit c49edcc

Browse files
committed
The timeout is now configurable via the STORAGE_HTTP_TIMEOUT_SECONDS
secret key (or --storage-http-timeout-seconds flag). Default remains 30s. Resolves: None Signed-off-by: Michael Jons <Michael.Jons@tre.se>
1 parent 6b5eabf commit c49edcc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/vsphere-xcopy-volume-populator/vsphere-xcopy-volume-populator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ func handleArgs() {
312312
flag.StringVar(&vspherePassword, "vsphere-password", os.Getenv("GOVMOMI_PASSWORD"), "vSphere's API password")
313313
flag.StringVar(&esxiCloneMethod, "esxi-clone-method", os.Getenv("ESXI_CLONE_METHOD"), "ESXi clone method: 'vib' (default) or 'ssh'")
314314
flag.IntVar(&sshTimeoutSeconds, "ssh-timeout-seconds", 30, "SSH timeout in seconds for ESXi operations (default: 30)")
315-
flag.StringVar(&storageAPITimeoutSeconds, "storage-api-timeout-seconds", os.Getenv("STORAGE_HTTP_TIMEOUT_SECONDS"), "HTTP client timeout in seconds for storage API requests (default: 30)")
315+
flag.StringVar(&storageAPITimeoutSeconds, "storage-http-timeout-seconds", os.Getenv("STORAGE_HTTP_TIMEOUT_SECONDS"), "HTTP client timeout in seconds for storage API requests (default: 30)")
316316
flag.StringVar(&kubeconfig, "kubeconfig", "", "Path to a kubeconfig. Only required if out-of-cluster.")
317317
flag.StringVar(&masterURL, "master", "", "The address of the Kubernetes API server. Overrides any value in kubeconfig. Only required if out-of-cluster.")
318318
// Metrics args

0 commit comments

Comments
 (0)