mirror of https://github.com/portainer/portainer
fix(endpoints): check environment type before start metrics detection EE-4944 (#8391)
parent
851a3346a9
commit
cfdb9c126f
|
@ -53,7 +53,7 @@ func (handler *Handler) endpointInspect(w http.ResponseWriter, r *http.Request)
|
||||||
}
|
}
|
||||||
|
|
||||||
isServerMetricsDetected := endpoint.Kubernetes.Flags.IsServerMetricsDetected
|
isServerMetricsDetected := endpoint.Kubernetes.Flags.IsServerMetricsDetected
|
||||||
if !isServerMetricsDetected && handler.K8sClientFactory != nil {
|
if endpointutils.IsKubernetesEndpoint(endpoint) && !isServerMetricsDetected && handler.K8sClientFactory != nil {
|
||||||
endpointutils.InitialMetricsDetection(
|
endpointutils.InitialMetricsDetection(
|
||||||
endpoint,
|
endpoint,
|
||||||
handler.DataStore.Endpoint(),
|
handler.DataStore.Endpoint(),
|
||||||
|
|
Loading…
Reference in New Issue