-
Notifications
You must be signed in to change notification settings - Fork 304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
reflector:_list_and_update check k8s api response error before read the items #722
Comments
There may be another issue as well, but the key issue is permissions. The jupyterhub chart isn't pre-configured to grant tge required permissions.
I recall there are docstrings about required permissions to be found in the class defintion for KubeIngressProxy. |
A fix for this project is to fail with a better error message if we receive a forbidden response. |
This is because kubespawner/kubespawner/reflector.py Lines 218 to 223 in 8766d36
It was added in #424. I'm not sure that it should be used in kubespawner/kubespawner/reflector.py Lines 302 to 304 in 8766d36
|
@dolfinus as the log I printed begining, the exception is raise at kubespawner/kubespawner/reflector.py Lines 228 to 234 in a1a4a6f
|
If |
I got an
KeyError: 'items'
while using KubeIngressProxy, and I add some log to find out reason:Proposed change
reflector:_list_and_update
check k8s api response error before read the itemstemplates/hub/rbac.yaml
add ingress api (for https://github.com/jupyterhub/helm-chart)The text was updated successfully, but these errors were encountered: