Skip to content

Commit 099e769

Browse files
authored
Merge pull request #1187 from snyk/chore/kubectl-version
chore: restore kubectl version to latest in tests
2 parents f024a95 + 02bc433 commit 099e769

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)