File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ export async function deployMonitor(): Promise<string> {
137137 if ( createCluster ) {
138138 await platforms [ testPlatform ] . create ( imageNameAndTag ) ;
139139 }
140- await platforms [ testPlatform ] . config ( 'kind' ) ;
140+ await platforms [ testPlatform ] . config ( ) ;
141141 await createEnvironment ( ) ;
142142 const integrationId = await installKubernetesMonitor ( imageNameAndTag ) ;
143143 await waiters . waitForMonitorToBeReady ( ) ;
Original file line number Diff line number Diff line change 11export async function createCluster ( imageNameAndTag : string ) : Promise < void > {
2- exportKubeConfig ( 'TODO' ) ;
2+ exportKubeConfig ( ) ;
33 throw new Error ( 'Not implemented' ) ;
44 // process.env.KUBECONFIG = 'path-to-/kubeconfig-aws';
55}
66
7- export async function deleteCluster ( clusterName = 'kind' ) : Promise < void > {
7+ export async function deleteCluster ( ) : Promise < void > {
88 throw new Error ( 'Not implemented' ) ;
99}
1010
11- export async function exportKubeConfig ( clusterName ) : Promise < void > {
11+ export async function exportKubeConfig ( ) : Promise < void > {
1212 throw new Error ( 'Not implemented' ) ;
1313}
Original file line number Diff line number Diff line change @@ -4,22 +4,22 @@ import { platform } from 'os';
44import { resolve } from 'path' ;
55import * as needle from 'needle' ;
66
7+ const clusterName = 'kind' ;
8+
79export async function createCluster ( imageNameAndTag : string ) : Promise < void > {
810 const osDistro = platform ( ) ;
911 await download ( osDistro ) ;
10- const clusterName = 'kind' ;
1112 await createKindCluster ( clusterName ) ;
12- await exportKubeConfig ( clusterName ) ; // Don't worry, removing this soon!
1313 await loadImageInCluster ( imageNameAndTag ) ;
1414}
1515
16- export async function deleteCluster ( clusterName = 'kind' ) : Promise < void > {
16+ export async function deleteCluster ( ) : Promise < void > {
1717 console . log ( `Deleting cluster ${ clusterName } ...` ) ;
1818 await exec ( `./kind delete cluster --name=${ clusterName } ` ) ;
1919 console . log ( `Deleted cluster ${ clusterName } !` ) ;
2020}
2121
22- export async function exportKubeConfig ( clusterName ) : Promise < void > {
22+ export async function exportKubeConfig ( ) : Promise < void > {
2323 console . log ( 'Exporting K8s config...' ) ;
2424 const kindResponse = await exec ( `./kind get kubeconfig-path --name="${ clusterName } "` ) ;
2525 const configPath = kindResponse . stdout . replace ( / [ \n \t \r ] / g, '' ) ;
You can’t perform that action at this time.
0 commit comments