Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/dynamic-client/request_timeout.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,15 @@ 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")

# Listing the configmaps in the `default` namespace
# 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))
Expand Down
2 changes: 1 addition & 1 deletion examples/watch/timeout-settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -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***
Expand Down