@@ -55,8 +55,8 @@ const DEMO_STEP_IMAGE = {
55
55
'docker.io' : 'alpine:latest' ,
56
56
'quay.io' : 'quay.io/codefresh/alpine:3.11' ,
57
57
'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
+ } ;
60
60
61
61
const maxRuntimeNameLength = 63 ;
62
62
const DefaultLogFormatter = 'plain' ;
@@ -156,10 +156,10 @@ async function updateTestPipelineRuntime(pipeline, runtimeName, pipelineName, do
156
156
name : runtimeName ,
157
157
} ;
158
158
159
- let demoStepImage = DEMO_STEP_IMAGE [ dockerRegistry ] || DEMO_STEP_IMAGE . default ;
159
+ const demoStepImage = DEMO_STEP_IMAGE [ dockerRegistry ] || DEMO_STEP_IMAGE . default ;
160
160
161
161
_pipeline . spec . steps . test . image = demoStepImage ;
162
-
162
+
163
163
await sdk . pipelines . replace (
164
164
{ name : _pipeline . metadata . name } ,
165
165
{
@@ -375,11 +375,11 @@ async function attemptDownload(location, component) {
375
375
return await to ( downloader . download ( component ) ) ;
376
376
}
377
377
378
- async function downloadVeonona ( location = CODEFRESH_PATH , bypassDownload = false ) {
378
+ async function downloadVeonona ( location = CODEFRESH_PATH , bypassDownload = false ) {
379
379
if ( await bypassDownloadSuccess ( bypassDownload , components . venona . local . dir , components . venona . local . binary ) ) {
380
380
return path . resolve ( process . cwd ( ) , INSTALLATION_DEFAULTS . COMPONENTS_FOLDER ) ;
381
381
}
382
-
382
+
383
383
const [ error ] = await attemptDownload ( location , components . venona ) ;
384
384
if ( error ) {
385
385
if ( await bypassDownloadSuccess ( ! bypassDownload , components . venona . local . dir , components . venona . local . binary ) ) {
@@ -395,7 +395,7 @@ async function downloadVeonona(location = CODEFRESH_PATH, bypassDownload = false
395
395
396
396
async function downloadProvider ( { provider, location = CODEFRESH_PATH } , bypassDownload = false ) {
397
397
const localSettings = components . gitops [ provider ] . local ;
398
-
398
+
399
399
if ( await bypassDownloadSuccess ( bypassDownload , localSettings . dir , localSettings . binary ) ) {
400
400
return path . resolve ( process . cwd ( ) , INSTALLATION_DEFAULTS . COMPONENTS_FOLDER ) ;
401
401
}
@@ -429,7 +429,7 @@ async function downloadSteveDore(location = CODEFRESH_PATH, bypassDownload = fal
429
429
return location ;
430
430
}
431
431
432
- async function downloadHybridComponents ( location , bypassDownload = false ) {
432
+ async function downloadHybridComponents ( location , bypassDownload = false ) {
433
433
await downloadVeonona ( location , bypassDownload ) ;
434
434
console . log ( `Kubernetes components installer downloaded successfully to ${ location } ` ) ;
435
435
await downloadSteveDore ( location , bypassDownload ) ;
@@ -494,7 +494,7 @@ async function runClusterAcceptanceTests({
494
494
await componentRunner . run ( components . venona , cmd ) ;
495
495
}
496
496
497
- async function runUpgrade ( { kubeNamespace, kubeContextName } ) {
497
+ async function runUpgrade ( { kubeNamespace, kubeContextName, bypassDownload } ) {
498
498
const binLocation = await downloadVeonona ( undefined , bypassDownload ) ;
499
499
const componentRunner = new Runner ( binLocation ) ;
500
500
const cmd = [ 'upgrade' , '--log-formtter' , DefaultLogFormatter ] ;
@@ -531,7 +531,7 @@ async function installAgent({
531
531
setValue, // --set-value
532
532
setFile, // --set-file
533
533
} ) {
534
- const binLocation = await downloadVeonona ( undefined , bypassDownload ) ;
534
+ const binLocation = await downloadVeonona ( undefined , bypassDownload ) ;
535
535
const componentRunner = new Runner ( binLocation ) ;
536
536
const cmd = [
537
537
'install' ,
@@ -695,6 +695,7 @@ async function installAppProxy({
695
695
verbose, // --verbose
696
696
dockerRegistry, // --docker-registry
697
697
logFormatting = DefaultLogFormatter , // --log-formtter
698
+ bypassDownload, // --bypass-download
698
699
valuesFile, // --values
699
700
setValue, // --set-value
700
701
setFile, // --set-file
@@ -771,6 +772,7 @@ async function unInstallAppProxy({
771
772
kubeNamespace, // --kube-namespace
772
773
kubeConfigPath, // --kube-config-path
773
774
verbose, // --verbose
775
+ bypassDownload, // --bypass-download
774
776
logFormatting = DefaultLogFormatter , // --log-formtter
775
777
valuesFile, // --values
776
778
setValue, // --set-value
@@ -812,6 +814,7 @@ async function upgradeAppProxy({
812
814
kubeNamespace, // --kube-namespace
813
815
kubeConfigPath, // --kube-config-path
814
816
verbose, // --verbose
817
+ bypassDownload, // --bypass-download
815
818
logFormatting = DefaultLogFormatter , // --log-formtter
816
819
valuesFile, // --values
817
820
setValue, // --set-value
@@ -971,6 +974,7 @@ async function newAgentName(kubeContextName, kubeNamespace, agents) {
971
974
972
975
return name ;
973
976
}
977
+
974
978
function keyValueAsStringToObject ( nodeSelectorStr ) {
975
979
if ( nodeSelectorStr ) {
976
980
const kubeNodeSelectorObj = { } ;
0 commit comments