fix the check for whether the cluster supports metrics (#2424)

mine
Jayson Wang 2024-01-03 23:26:22 +08:00 committed by GitHub
parent 982bf6a728
commit 1c19ef6ad6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -352,7 +352,7 @@ func (a *APIClient) Config() *Config {
// HasMetrics checks if the cluster supports metrics.
func (a *APIClient) HasMetrics() bool {
return a.supportsMetricsResources() != nil
return a.supportsMetricsResources() == nil
}
// DialLogs returns a handle to api server for logs.