Open DARSHAN-THE-CODER opened 4 months ago
Hi, here rest.py is the right code receiving the parameter retries
.
/assign @showjason
Hi, here rest.py is the right code receiving the parameter
retries
.
It is not working, as in even retries is not getting applied
Hi, here rest.py is the right code receiving the parameter
retries
.It is not working, as in even retries is not getting applied
please try the following code:
from kubernetes import client, config
conf = client.Configuration()
conf.retries = 3
config.load_kube_config(client_configuration=conf)
client.Configuration.set_default(conf)
v1 = client.CoreV1Api()
resp = v1.read_namespaced_pod("<pod_name>", "<namespace>")
print(resp)
The Kubernetes project currently lacks enough contributors to adequately respond to all issues.
This bot triages un-triaged issues according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/remove-lifecycle stale
/close
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
What happened (please include outputs or screenshots): configuraa = client.Configuration() configuraa.retries = 1 client.Configuration.set_default(configuraa) Here, I am trying to override retries value from 3 to 1. This is from the source code ->
But I found that , you are not receiving that parameter here ->
What you expected to happen: Expected behaviour -> User should be able to override max retry times incase cluster is not reachable How to reproduce it (as minimally and precisely as possible): Try to reach any cluster which doesnt exist properly from the above code Anything else we need to know?: After a long time, this error is printed , Which takes literally a lot of time ! and get this error message
Environment:
kubectl version
) : Client Version: version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.14") , Server Version: version.Info{Major:"1", Minor:"27", GitVersion:"v1.27.9-gke.1092000"python --version
) : Python 3.6.8pip list | grep kubernetes
): kubernetes 26.1.0