diff --git a/src/main/cluster-detectors/distribution-detector.ts b/src/main/cluster-detectors/distribution-detector.ts index 2279f97e3e..c29c9df139 100644 --- a/src/main/cluster-detectors/distribution-detector.ts +++ b/src/main/cluster-detectors/distribution-detector.ts @@ -135,7 +135,7 @@ export class DistributionDetector extends BaseClusterDetector { try { const response = await this.k8sRequest(""); - return response.paths?.find((api: string) => api === "/apis/project.openshift.io") !== undefined; + return response.paths?.includes("/apis/project.openshift.io"); } catch (e) { return false; }