mirror of https://github.com/helm/helm
parent
8d6007a7d1
commit
b5ce6939df
@ -0,0 +1,21 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/deis/helm-dm/format"
|
||||
"github.com/deis/helm-dm/kubectl"
|
||||
)
|
||||
|
||||
func target(dryRun bool) error {
|
||||
client := kubectl.Client
|
||||
if dryRun {
|
||||
client = kubectl.PrintRunner{}
|
||||
}
|
||||
out, err := client.ClusterInfo()
|
||||
if err != nil {
|
||||
return fmt.Errorf("%s (%s)", out, err)
|
||||
}
|
||||
format.Msg(string(out))
|
||||
return nil
|
||||
}
|
Loading…
Reference in new issue