Cannot fetch api/v1/settings/pinner - breaks listing elements
Installation method: cli kubectl
Kubernetes version: v1.15.3
Dashboard version: v2.0.0-beta5+0.g93474e5
Operating system: Ubuntu 18.04.2 LTS
Node.js version ('node --version' output): n/a
Go version ('go version' output): n/a
Steps to reproduce
- Use incognito mode to force fresh session opening
- Login with the config
- Go to Custom Resources Definition
- Go to overview
Observed result
Missing items in the lists
Expected result
Lists containing all the items
Comments
After first login, there's query /api/v1/settings/pinner with 401 response, which triggers script exception:
Uncaught TypeError: Cannot read property 'length' of undefined
at t.isPinned (main.d9fca64efc90054cfeab.js:1)
at t.isPinned (main.d9fca64efc90054cfeab.js:1)
at Object.updateDirectives (main.d9fca64efc90054cfeab.js:1)
at Object.updateDirectives (main.d9fca64efc90054cfeab.js:1)
at Eb (main.d9fca64efc90054cfeab.js:1)
at Pb (main.d9fca64efc90054cfeab.js:1)
at Ib (main.d9fca64efc90054cfeab.js:1)
at Eb (main.d9fca64efc90054cfeab.js:1)
at Pb (main.d9fca64efc90054cfeab.js:1)
at Rb (main.d9fca64efc90054cfeab.js:1)
After refreshing website everything comes back to normal.

Latest beta5 added support to K8S v1.16. This partially breaks compatibility with v1.15 and older K8S versions due to some breaking changes in client-go.
https://github.com/kubernetes/dashboard/releases/tag/v2.0.0-beta5
As you can see in the compatibility matrix, we do not guarantee full compatibility. If this will happen with K8S v1.16+ then it will be a bug. Reopen if you encounter the same issue with newer K8S.
/close
@floreks: Closing this issue.
In response to this:
Latest
beta5added support to K8Sv1.16. This partially breaks compatibility withv1.15and older K8S versions due to some breaking changes inclient-go.https://github.com/kubernetes/dashboard/releases/tag/v2.0.0-beta5
As you can see in the compatibility matrix, we do not guarantee full compatibility. If this will happen with K8S
v1.16+then it will be a bug./close
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.
Latest
beta5added support to K8Sv1.16. This partially breaks compatibility withv1.15and older K8S versions due to some breaking changes inclient-go.https://github.com/kubernetes/dashboard/releases/tag/v2.0.0-beta5
As you can see in the compatibility matrix, we do not guarantee full compatibility. If this will happen with K8S
v1.16+then it will be a bug. Reopen if you encounter the same issue with newer K8S./close
Issue persists in 1.16.2
/open
/reopen
@floreks: Reopened this issue.
In response to this:
/reopen
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.
Uncaught TypeError: Cannot read property 'length' of undefined
at t.isPinned (main.d9fca64efc90054cfeab.js:1)
at t.isPinned (main.d9fca64efc90054cfeab.js:1)
at Object.updateDirectives (main.d9fca64efc90054cfeab.js:1)
at Object.updateDirectives (main.d9fca64efc90054cfeab.js:1)
at Eb (main.d9fca64efc90054cfeab.js:1)
at Pb (main.d9fca64efc90054cfeab.js:1)
at Ib (main.d9fca64efc90054cfeab.js:1)
at Eb (main.d9fca64efc90054cfeab.js:1)
at Pb (main.d9fca64efc90054cfeab.js:1)
at Rb (main.d9fca64efc90054cfeab.js:1)
Does this mean that we need to make an empty judgment on the object that gets the length property in the front-end script code? @floreks