@@ -55,8 +55,8 @@ const DEMO_STEP_IMAGE = {
5555 'docker.io' : 'alpine:latest' ,
5656 'quay.io' : 'quay.io/codefresh/alpine:3.11' ,
5757 'gcr.io' : 'gcr.io/google-containers/alpine-with-bash' ,
58- default : 'quay.io/codefresh/alpine:3.11'
59- }
58+ default : 'quay.io/codefresh/alpine:3.11' ,
59+ } ;
6060
6161const maxRuntimeNameLength = 63 ;
6262const DefaultLogFormatter = 'plain' ;
@@ -156,10 +156,10 @@ async function updateTestPipelineRuntime(pipeline, runtimeName, pipelineName, do
156156 name : runtimeName ,
157157 } ;
158158
159- let demoStepImage = DEMO_STEP_IMAGE [ dockerRegistry ] || DEMO_STEP_IMAGE . default ;
159+ const demoStepImage = DEMO_STEP_IMAGE [ dockerRegistry ] || DEMO_STEP_IMAGE . default ;
160160
161161 _pipeline . spec . steps . test . image = demoStepImage ;
162-
162+
163163 await sdk . pipelines . replace (
164164 { name : _pipeline . metadata . name } ,
165165 {
@@ -375,11 +375,11 @@ async function attemptDownload(location, component) {
375375 return await to ( downloader . download ( component ) ) ;
376376}
377377
378- async function downloadVeonona ( location = CODEFRESH_PATH , bypassDownload = false ) {
378+ async function downloadVeonona ( location = CODEFRESH_PATH , bypassDownload = false ) {
379379 if ( await bypassDownloadSuccess ( bypassDownload , components . venona . local . dir , components . venona . local . binary ) ) {
380380 return path . resolve ( process . cwd ( ) , INSTALLATION_DEFAULTS . COMPONENTS_FOLDER ) ;
381381 }
382-
382+
383383 const [ error ] = await attemptDownload ( location , components . venona ) ;
384384 if ( error ) {
385385 if ( await bypassDownloadSuccess ( ! bypassDownload , components . venona . local . dir , components . venona . local . binary ) ) {
@@ -395,7 +395,7 @@ async function downloadVeonona(location = CODEFRESH_PATH, bypassDownload = false
395395
396396async function downloadProvider ( { provider, location = CODEFRESH_PATH } , bypassDownload = false ) {
397397 const localSettings = components . gitops [ provider ] . local ;
398-
398+
399399 if ( await bypassDownloadSuccess ( bypassDownload , localSettings . dir , localSettings . binary ) ) {
400400 return path . resolve ( process . cwd ( ) , INSTALLATION_DEFAULTS . COMPONENTS_FOLDER ) ;
401401 }
@@ -429,7 +429,7 @@ async function downloadSteveDore(location = CODEFRESH_PATH, bypassDownload = fal
429429 return location ;
430430}
431431
432- async function downloadHybridComponents ( location , bypassDownload = false ) {
432+ async function downloadHybridComponents ( location , bypassDownload = false ) {
433433 await downloadVeonona ( location , bypassDownload ) ;
434434 console . log ( `Kubernetes components installer downloaded successfully to ${ location } ` ) ;
435435 await downloadSteveDore ( location , bypassDownload ) ;
@@ -494,7 +494,7 @@ async function runClusterAcceptanceTests({
494494 await componentRunner . run ( components . venona , cmd ) ;
495495}
496496
497- async function runUpgrade ( { kubeNamespace, kubeContextName } ) {
497+ async function runUpgrade ( { kubeNamespace, kubeContextName, bypassDownload } ) {
498498 const binLocation = await downloadVeonona ( undefined , bypassDownload ) ;
499499 const componentRunner = new Runner ( binLocation ) ;
500500 const cmd = [ 'upgrade' , '--log-formtter' , DefaultLogFormatter ] ;
@@ -531,7 +531,7 @@ async function installAgent({
531531 setValue, // --set-value
532532 setFile, // --set-file
533533} ) {
534- const binLocation = await downloadVeonona ( undefined , bypassDownload ) ;
534+ const binLocation = await downloadVeonona ( undefined , bypassDownload ) ;
535535 const componentRunner = new Runner ( binLocation ) ;
536536 const cmd = [
537537 'install' ,
@@ -695,6 +695,7 @@ async function installAppProxy({
695695 verbose, // --verbose
696696 dockerRegistry, // --docker-registry
697697 logFormatting = DefaultLogFormatter , // --log-formtter
698+ bypassDownload, // --bypass-download
698699 valuesFile, // --values
699700 setValue, // --set-value
700701 setFile, // --set-file
@@ -771,6 +772,7 @@ async function unInstallAppProxy({
771772 kubeNamespace, // --kube-namespace
772773 kubeConfigPath, // --kube-config-path
773774 verbose, // --verbose
775+ bypassDownload, // --bypass-download
774776 logFormatting = DefaultLogFormatter , // --log-formtter
775777 valuesFile, // --values
776778 setValue, // --set-value
@@ -812,6 +814,7 @@ async function upgradeAppProxy({
812814 kubeNamespace, // --kube-namespace
813815 kubeConfigPath, // --kube-config-path
814816 verbose, // --verbose
817+ bypassDownload, // --bypass-download
815818 logFormatting = DefaultLogFormatter , // --log-formtter
816819 valuesFile, // --values
817820 setValue, // --set-value
@@ -971,6 +974,7 @@ async function newAgentName(kubeContextName, kubeNamespace, agents) {
971974
972975 return name ;
973976}
977+
974978function keyValueAsStringToObject ( nodeSelectorStr ) {
975979 if ( nodeSelectorStr ) {
976980 const kubeNodeSelectorObj = { } ;
0 commit comments