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
We observed the argo client getting unauthorized errors when workflows took longer than an hour to run. This is because the OAuth credential is expiring and not being refreshed.
The K8s client should automatically be refreshing the OAuth credential but this doesn't appear to happen. In #208 we added a temporary workaround to force a refresh but we should figure out why its necessary.
To work around an issue in the K8s client we overrode loading of kube config and inserted our own logic to refresh credentials. I suspect there is a bug in that refresh and refresh is not being called (we could potentially instrument it to see if that's true).
I also faced with a problem with refreshing token. Python client reads token from ~./kube/config, if it is already expired, creates new token and sends next request with a new one. It looks like a usual flow but the issue is that kubectl config remains the same (with old expired token) and API responds me with 403 Forbidden error since I come with unknown for him token.
The only way I can refresh token in ~./kube/config is to execute any kubectl command from console (e.g. kubectl get namespaces). After this token refreshes and API responds 200 OK. Does anybody know how to fix it?
See
#207
#208
We observed the argo client getting unauthorized errors when workflows took longer than an hour to run. This is because the OAuth credential is expiring and not being refreshed.
The K8s client should automatically be refreshing the OAuth credential but this doesn't appear to happen. In #208 we added a temporary workaround to force a refresh but we should figure out why its necessary.
I suspect the problem is here:
testing/py/kubeflow/testing/util.py
Line 460 in bec4812
To work around an issue in the K8s client we overrode loading of kube config and inserted our own logic to refresh credentials. I suspect there is a bug in that refresh and refresh is not being called (we could potentially instrument it to see if that's true).
We should consider the following
The text was updated successfully, but these errors were encountered: