You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
helm/kubectl/cluster_info.go

13 lines
336 B

package kubectl
// ClusterInfo returns Kubernetes cluster info
func (r RealRunner) ClusterInfo() ([]byte, error) {
return command("cluster-info").CombinedOutput()
}
// ClusterInfo returns the commands to kubectl
func (r PrintRunner) ClusterInfo() ([]byte, error) {
cmd := command("cluster-info")
return []byte(cmd.String()), nil
}