mirror of https://github.com/helm/helm
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.
22 lines
345 B
22 lines
345 B
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
|
|
}
|