return error is client not set

Signed-off-by: Jeff Knurek <j.knurek@travelaudience.com>
pull/6612/head
Jeff Knurek 6 years ago committed by Matthew Fisher
parent 71cbbe4217
commit 7f2e0c535c
No known key found for this signature in database
GPG Key ID: 92AA783CBAAE8E3B

@ -949,7 +949,10 @@ func (c *Client) watchPodUntilComplete(timeout time.Duration, info *resource.Inf
// GetPodLogs takes pod name and namespace and returns the current logs (streaming is NOT enabled).
func (c *Client) GetPodLogs(name, ns string) (string, error) {
client, _ := c.KubernetesClientSet()
client, err := c.KubernetesClientSet()
if err != nil {
return "", err
}
req := client.CoreV1().Pods(ns).GetLogs(name, &v1.PodLogOptions{})
podLogs, err := req.Stream()
if err != nil {

Loading…
Cancel
Save