Check the returned error from the setupCache method (#11528)
This commit is contained in:
parent
dd29598a76
commit
015b494b20
|
@ -110,6 +110,10 @@ func createPodClient(ctx context.Context, logger logr.Logger, enableNodeWatcher
|
|||
nodeName := os.Getenv("FDB_NODE_NAME")
|
||||
|
||||
internalClient, internalCache, err := setupCache(namespace, podName, nodeName)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
podClient := &kubernetesClient{
|
||||
podMetadata: nil,
|
||||
nodeMetadata: nil,
|
||||
|
|
Loading…
Reference in New Issue