Skip to content

Commit 02bc433

Browse files
committed
chore: restore kubectl version to latest in tests
The issue caused by Amazon for a specific kubectl version has now been fixed.
1 parent f024a95 commit 02bc433

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

test/helpers/kubectl.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@ import { execWrapper as exec } from './exec';
1313
export async function downloadKubectl(version: string): Promise<void> {
1414
const kubectlPath = resolve(process.cwd(), 'kubectl');
1515
if (existsSync(kubectlPath)) {
16-
if (version === 'latest') {
17-
return;
18-
}
19-
20-
// Always start clean when requesting a specific version.
2116
unlinkSync(kubectlPath);
2217
}
2318

test/system/kind.spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,7 @@ test('Kubernetes-Monitor with KinD', async () => {
7474
throw new Error('Please install skopeo on your machine');
7575
}
7676

77-
// pinning to this version due to https://github.com/aws/aws-cli/issues/6920
78-
const kubernetesVersion = 'v1.23.5';
77+
const kubernetesVersion = 'latest';
7978
// kubectl
8079
await kubectl.downloadKubectl(kubernetesVersion);
8180

0 commit comments

Comments
 (0)