change Azure API timeout default to 2m
Signed-off-by: Steve Kriss <steve@heptio.com>pull/90/head
parent
5405067a2e
commit
5424eba417
|
@ -99,7 +99,7 @@ No parameters required; specify an empty object per [example file][14].
|
||||||
| Key | Type | Default | Meaning |
|
| Key | Type | Default | Meaning |
|
||||||
| --- | --- | --- | --- |
|
| --- | --- | --- | --- |
|
||||||
| `location` | string | Required Field | *Example*: "Canada East"<br><br>See [the list of available locations][7] (note that this particular page refers to them as "Regions"). |
|
| `location` | string | Required Field | *Example*: "Canada East"<br><br>See [the list of available locations][7] (note that this particular page refers to them as "Regions"). |
|
||||||
| `apiTimeout` | metav1.Duration | 1m0s | How long to wait for an API Azure request to complete before timeout. |
|
| `apiTimeout` | metav1.Duration | 2m0s | How long to wait for an Azure API request to complete before timeout. |
|
||||||
|
|
||||||
[0]: #aws
|
[0]: #aws
|
||||||
[1]: #gcp
|
[1]: #gcp
|
||||||
|
|
|
@ -78,7 +78,7 @@ func NewBlockStorageAdapter(location string, apiTimeout time.Duration) (cloudpro
|
||||||
}
|
}
|
||||||
|
|
||||||
if apiTimeout == 0 {
|
if apiTimeout == 0 {
|
||||||
apiTimeout = time.Minute
|
apiTimeout = 2 * time.Minute
|
||||||
}
|
}
|
||||||
|
|
||||||
cfg := getConfig()
|
cfg := getConfig()
|
||||||
|
|
Loading…
Reference in New Issue