fix(kube): 30 second delay to storage detection EE-4822 (#8360)

This commit is contained in:
Dakota Walsh
2023-01-31 09:58:57 +13:00
committed by GitHub
parent eb8644330e
commit 53eb5aa1ee
5 changed files with 63 additions and 4 deletions

View File

@@ -61,6 +61,15 @@ func (handler *Handler) endpointInspect(w http.ResponseWriter, r *http.Request)
)
}
isServerStorageDetected := endpoint.Kubernetes.Flags.IsServerStorageDetected
if !isServerStorageDetected && handler.K8sClientFactory != nil {
endpointutils.InitialStorageDetection(
endpoint,
handler.DataStore.Endpoint(),
handler.K8sClientFactory,
)
}
return response.JSON(w, endpoint)
}