Unverified Commit 7f2e0c53 authored by Jeff Knurek's avatar Jeff Knurek Committed by Matthew Fisher

return error is client not set

Signed-off-by: 's avatarJeff Knurek <j.knurek@travelaudience.com>
parent 71cbbe42
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment