diff --git a/pkg/utils/common/args.go b/pkg/utils/common/args.go index f3e10b737..55a57f38d 100644 --- a/pkg/utils/common/args.go +++ b/pkg/utils/common/args.go @@ -128,7 +128,7 @@ func (a *Args) GetFakeClient(defs []*unstructured.Unstructured) (client.Client, return a.client, nil } if a.config == nil { - if err := a.SetConfig(nil); err != nil { + if err := a.SetConfig(&rest.Config{}); err != nil { return nil, err } }