Skip to content

Commit

Permalink
Handle config err (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
bigdatasourav committed Apr 14, 2023
1 parent 1c89eb5 commit 1f0cd24
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kubernetes/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,9 @@ func listK8sDynamicCRDs(ctx context.Context, cn *connection.ConnectionCache, c *
clientset, err := GetNewClientCRDRaw(ctx, cn, c)
if err != nil {
plugin.Logger(ctx).Error("listK8sDynamicCRDs", "GetNewClientCRDRaw", err)
return nil, err

// At the plugin load time, if the config file does not contain valid properties, return nil
return nil, nil
}

input := metav1.ListOptions{
Expand Down

0 comments on commit 1f0cd24

Please sign in to comment.