chuckha / kubeyaml

Validate kubernetes yaml documents against the swagger definitions
https://kubeyaml.com
101 stars 16 forks source link

unknown schema io.k8s.api.rbac.authorization.v1.ClusterRole #18

Open r1ckr opened 4 years ago

r1ckr commented 4 years ago

According to the KubeAPI this is a valid schema, but it appears as unknown:

unknown schema io.k8s.api.rbac.authorization.v1.ClusterRole

apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  name: prometheus
rules:
- apiGroups: [""]
  resources:
  - nodes
  - nodes/proxy
  - services
  - endpoints
  - pods
  verbs: ["get", "list", "watch"]
- apiGroups:
  - extensions
  resources:
  - ingresses
  verbs: ["get", "list", "watch"]
- nonResourceURLs: ["/metrics"]
  verbs: ["get"]
chuckha commented 4 years ago

Yeah, that's https://github.com/chuckha/kubeyaml/issues/1, but I'm leaving this open because it has YAML that is really helpful for debugging. I'll figure out a solution here! thanks for the report :)