Merge pull request #2071 from hemslo/request-timeout-fix
Fix request_timeout example and doc
This commit is contained in:
commit
08aabad06a
@ -51,7 +51,7 @@ def main():
|
||||
# Creating configmap `request-timeout-test-configmap` in the `default` namespace
|
||||
# Client-side timeout to 60 seconds
|
||||
|
||||
configmap = api.create(body=configmap_manifest, namespace="default", _request_time=60)
|
||||
configmap = api.create(body=configmap_manifest, namespace="default", _request_timeout=60)
|
||||
|
||||
print("\n[INFO] configmap `request-timeout-test-configmap` created\n")
|
||||
|
||||
@ -59,7 +59,7 @@ def main():
|
||||
# Client-side timeout to 60 seconds
|
||||
|
||||
configmap_list = api.get(
|
||||
name=configmap_name, namespace="default", label_selector="foo=bar", _request_time=60
|
||||
name=configmap_name, namespace="default", label_selector="foo=bar", _request_timeout=60
|
||||
)
|
||||
|
||||
print("NAME:\n%s\n" % (configmap_list.metadata.name))
|
||||
|
||||
@ -50,7 +50,7 @@ There are two inputs available in the client, that could be used to set connecti
|
||||
- The value of the argument `_request_timeout`, **n** (which is time duration in seconds) is set to the socket used for the connection.
|
||||
|
||||
- In case, if the `_request_timeout` value is set, this argument can accept 2 types of input values ~
|
||||
- float,
|
||||
- int/long
|
||||
- a tuple (with a length of 2)
|
||||
|
||||
***Refer***
|
||||
|
||||
Loading…
Reference in New Issue
Block a user