You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
State changing APIs are not retried by default. But added an option to switch that on when the caller desires.
Should be safe when retried only on 50x server errors or connect errors.
The option can be switched on for the KuberContext by calling the `set_retries` method.
Alternatively each API call also accepts a `max_retries` keywork argument to override the default set in the context.
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -77,7 +77,7 @@ A Kubernetes context can be manipulated with:
77
77
78
78
-`set_server`: Set the API server location ("http://localhost:8001" if not set)
79
79
-`set_ns`: Set the namespace to deal with (`default` namespace is not set)
80
-
-`set_retries`: Set the number of times an API call should be retried on a retriable error (5 if not set)
80
+
-`set_retries`: Set the number of times an API call should be retried on a retriable error (5 if not set) and whether all APIs should be retried (only non mutating APIs are retried by default)
Set the Kubernetes API server endpoint for a context.
139
+
140
+
Args:
141
+
- ctx: the context for which to set the API server endpoint
142
+
- uri: the API server endpoint uri
143
+
- reset_api_versions: whether to probe the server again for API versions supported (false by default)
144
+
145
+
Keyword Args:
146
+
- max_tries: retries allowed while probing API versions from server
147
+
- kwargs: other keyword args to pass on while constructing the client for API server (see Swagger.jl - https://github.com/JuliaComputing/Swagger.jl#readme)
0 commit comments