func (o *KubernetesOptions) Client(namespace string, dryRun bool) (*kube.Client, error) {
	if dryRun {
		return kube.NewFakeClient(o.DeckURI), nil
	}

	if o.cluster == "" {
		return kube.NewClientInCluster(namespace)
	}

	return kube.NewClientFromFile(o.cluster, namespace)
}
func (o *KubernetesOptions) Client(namespace string, dryRun bool) (*kube.Client, error) {
	if dryRun {
		return kube.NewFakeClient(o.DeckURI), nil
	}

	if o.cluster == "" {
		return kube.NewClientInCluster(namespace)
	}

	return kube.NewClientFromFile(o.cluster, namespace)
}
func ( o * KubernetesOptions ) Client ( namespace string , dryRun bool ) ( * kube . Client , error ) { if dryRun { return kube . NewFakeClient ( o . DeckURI ) , nil } if o . cluster == " " { return kube . NewClientInCluster ( namespace ) } return kube . NewClientFromFile ( o . cluster , namespace ) }
// Client returns a Kubernetes client.
Client returns a Kubernetes client .