Skip to content

Commit

Permalink
fix: prevent kube client lookup in GetFakeClient (#6428)
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Gillson <tyler.gillson@gmail.com>
  • Loading branch information
TylerGillson committed Dec 26, 2023
1 parent 0c449d5 commit 62efa9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/utils/common/args.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit 62efa9c

Please sign in to comment.