Check the returned error from the setupCache method (#11528)

This commit is contained in:
Johannes Scheuermann 2024-07-26 13:43:29 +02:00 committed by GitHub
parent dd29598a76
commit 015b494b20
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -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,