-
Notifications
You must be signed in to change notification settings - Fork 38
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
Error using v 0.1 #1
Comments
Tested here inside a Ubuntu 18.04 and the same occurs |
Interesting! Thanks for reporting this @rikatz … are you using the binaries or built it yourself? |
Using the binaries :) |
Thanks, and what's your |
|
OK, thanks. I suspect the |
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
annotations:
rbac.authorization.kubernetes.io/autoupdate: "true"
creationTimestamp: "2017-04-18T23:50:47Z"
labels:
kubernetes.io/bootstrapping: rbac-defaults
name: cluster-admin
resourceVersion: "26105543"
selfLink: /apis/rbac.authorization.k8s.io/v1/clusterrolebindings/cluster-admin
uid: d840db91-2491-11e7-9c82-0050568f9e1a
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-admin
subjects:
- apiGroup: rbac.authorization.k8s.io
kind: Group
name: system:masters Upgraded the kubectl to 1.14.2 but the error persists |
So I tried to reproduce your issue, using the Katacoda Kubernetes playground which has an 1.11 client installed (result see in the examples/ directory). Seems to work fine. |
LOL, commented at the same time.
This is even stranger! Hmmmm … |
Yeap. The error seems to be in genGraph. I'll put some brake points here and try to reproduce/find what's happening. |
Thanks. Yeah, it's in |
@mhausenblas could figure out the problem here: when you have a RoleBinding with no subjects it returns the error. The following is a RoleBinding that can reproduce the error: {
"apiVersion":"rbac.authorization.k8s.io/v1",
"kind":"RoleBinding",
"metadata":{
"creationTimestamp":"2017-04-24T22:53:27Z",
"name":"admin",
"namespace":"namespace1",
"resourceVersion":"27780594",
"selfLink":"/apis/rbac.authorization.k8s.io/v1/namespaces/namespace1/rolebindings/admin",
"uid":"d487bbe2-2940-11e7-bff1-0050568f9e1c"
},
"roleRef":{
"apiGroup":"rbac.authorization.k8s.io",
"kind":"ClusterRole",
"name":"admin"
}
}
|
Made a PR to fix this ;) |
Now I'm facing another error with Graphviz, but not related to rback by itself :P I've a pretty huge environment and cairo is not rendering it well. Anyway, this is nice! |
Yeah, that's what my hunch was as well (missing |
Yes, this was strange. Anyway it seems Kubernetes API supports RoleBinding without subjects. This should be an empty array other then a null field, but it happens this is a cluster created while it was version 1.7 and then being upgraded. Probably we've hit some old migration issue |
Oho! TIL :) Any references I can peruse? |
Hi,
Nice project!
I was trying to use it into my environment and I'm facing the following error:
My env:
OS CentOS 7.6 64 bit
K8S version: 1.13.4
Tks
The text was updated successfully, but these errors were encountered: