Commit 254d2f69 authored by Brad Davidson's avatar Brad Davidson Committed by Brad Davidson

Fix other uses of NewForConfigOrDie in contexts where we could return err

Signed-off-by: 's avatarBrad Davidson <brad.davidson@rancher.com> (cherry picked from commit 3da1bb3a)
parent 38896344
......@@ -59,7 +59,10 @@ func NewContext(ctx context.Context, cfg string) (*Context, error) {
return nil, err
}
k8s := kubernetes.NewForConfigOrDie(restConfig)
k8s, err := kubernetes.NewForConfig(restConfig)
if err != nil {
return nil, err
}
return &Context{
K3s: k3s.NewFactoryFromConfigOrDie(restConfig),
Helm: helm.NewFactoryFromConfigOrDie(restConfig),
......
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