We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf4afaa commit 5558165Copy full SHA for 5558165
pkg/client/fake/client.go
@@ -93,7 +93,7 @@ func (c *fakeClient) List(ctx context.Context, opts *client.ListOptions, list ru
93
if err != nil {
94
// The old fake client required GVK info in Raw.TypeMeta, so check there
95
// before giving up
96
- if opts.Raw.TypeMeta.APIVersion == "" || opts.Raw.TypeMeta.Kind == "" {
+ if opts.Raw == nil || opts.Raw.TypeMeta.APIVersion == "" || opts.Raw.TypeMeta.Kind == "" {
97
return err
98
}
99
gvk = opts.Raw.TypeMeta.GroupVersionKind()
0 commit comments