File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -47,3 +47,5 @@ config.local.json
4747# test utilities
4848kind
4949kubectl
50+ kubeconfig-integration-test-kind
51+ snyk-monitor-test-deployment.yaml
Original file line number Diff line number Diff line change @@ -20,8 +20,10 @@ export async function deleteCluster(): Promise<void> {
2020
2121export async function exportKubeConfig ( ) : Promise < void > {
2222 console . log ( 'Exporting K8s config...' ) ;
23- const kindResponse = await exec ( `./kind get kubeconfig-path --name="${ clusterName } "` ) ;
24- const configPath = kindResponse . stdout . replace ( / [ \n \t \r ] / g, '' ) ;
23+ const kubeconfigResult = await exec ( './kind get kubeconfig' ) ;
24+ const kubeconfigContent = kubeconfigResult . stdout ;
25+ const configPath = './kubeconfig-integration-test-kind' ;
26+ writeFileSync ( configPath , kubeconfigContent ) ;
2527 process . env . KUBECONFIG = configPath ;
2628 console . log ( 'Exported K8s config!' ) ;
2729}
@@ -48,7 +50,7 @@ async function download(osDistro: string): Promise<void> {
4850 // eslint-disable-next-line @typescript-eslint/camelcase
4951 const requestOptions = { follow_max : 2 } ;
5052 await needle ( 'get' ,
51- `https://github.com/kubernetes-sigs/kind/releases/download/v0.3.0 /kind-${ osDistro } -amd64` ,
53+ `https://github.com/kubernetes-sigs/kind/releases/download/v0.6.1 /kind-${ osDistro } -amd64` ,
5254 bodyData ,
5355 requestOptions ,
5456 ) . then ( ( response ) => {
You can’t perform that action at this time.
0 commit comments