Does kubernetes provide an API in its client library to get the cluster-info dump. I went through its API documentation and could find any api which could actually do this.
What i do now: kubectl cluster-info dump --output-directory="dumpdir"
What i want: Using client-go/kubernetes api libraries, make an API call to get this dump from a golang application. Is it possible?
What i know: There are individual API's for each resource which can provide all the information provided by the cluster-info dump, but i want to do it will a single API call.
For example: golang code:
coreClient := kubernetesapi.CoreV1()
nodeList, err := coreClient.Nodes().List(metav1.ListOptions{})
This will give me a list of nodes.
Is there an API which returns what "kubectl cluster-info dump" would give. So i can get all the details Programmatically.