fix: prevent kube client lookup in GetFakeClient (#6428)

Signed-off-by: Tyler Gillson <tyler.gillson@gmail.com>
This commit is contained in:
Tyler Gillson
2023-12-26 20:44:03 +08:00
committed by GitHub
parent 0c449d52b1
commit 62efa9c787
+1 -1
View File
@@ -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
}
}