Fix distribution detector erroneously depending on previous metadata (#6023)

Signed-off-by: Sebastian Malton <sebastian@malton.name>

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2022-08-26 11:05:04 -04:00
1 parent d10dacb560
commit 4c54e2b0f6
1 file changed
-2
@@ -96,8 +96,6 @@ export class DistributionDetector extends BaseClusterDetector {
} }
public async getKubernetesVersion() { public async getKubernetesVersion() {
if (this.cluster.version) return this.cluster.version;
const response = await this.k8sRequest("/version"); const response = await this.k8sRequest("/version");
return response.gitVersion; return response.gitVersion;