I thinks this should be easy, but i dont know JavaScript...
You must read kubernetes config file, and download to memory: { clusters.cluster.server }/openapi/v2 ( according https://kubernetes.io/docs/concepts/overview/kubernetes-api/#openapi-and-swagger-definitions ) . I thinks you can base on https://github.com/AtomLinter/linter-swagger or https://github.com/swagger-api/swagger-js
I thinks this should be easy, but i dont know JavaScript...
You must read kubernetes config file, and download to memory: { clusters.cluster.server }/openapi/v2 ( according https://kubernetes.io/docs/concepts/overview/kubernetes-api/#openapi-and-swagger-definitions ) . I thinks you can base on https://github.com/AtomLinter/linter-swagger or https://github.com/swagger-api/swagger-js