@@ -37,6 +37,9 @@ const applyAll = async () => {
37
37
const prevState = await getDeploymentState ( )
38
38
const intitalInstall = isEmpty ( prevState . version )
39
39
const argv : HelmArguments = getParsedArgs ( )
40
+ const hfArgs = intitalInstall
41
+ ? [ 'sync' , '--concurrency=1' , '--sync-args' , '--disable-openapi-validation --qps=20' ]
42
+ : [ 'apply' , '--sync-args' , '--qps=20' ]
40
43
41
44
await upgrade ( { when : 'pre' } )
42
45
d . info ( 'Start apply all' )
@@ -73,13 +76,11 @@ const applyAll = async () => {
73
76
fileOpts : 'helmfile.d/helmfile-02.init.yaml' ,
74
77
labelOpts : [ 'stage=prep' ] ,
75
78
logLevel : logLevelString ( ) ,
76
- args : [ 'apply' ] ,
79
+ args : hfArgs ,
77
80
} ,
78
81
{ streams : { stdout : d . stream . log , stderr : d . stream . error } } ,
79
82
)
80
83
await prepareDomainSuffix ( )
81
- // const applyLabel: string = process.env.OTOMI_DEV_APPLY_LABEL || 'stage!=prep'
82
- // d.info(`Deploying charts containing label ${applyLabel}`)
83
84
84
85
let labelOpts = [ '' ]
85
86
if ( intitalInstall ) {
@@ -102,7 +103,7 @@ const applyAll = async () => {
102
103
{
103
104
labelOpts,
104
105
logLevel : logLevelString ( ) ,
105
- args : [ 'apply' ] ,
106
+ args : hfArgs ,
106
107
} ,
107
108
{ streams : { stdout : d . stream . log , stderr : d . stream . error } } ,
108
109
)
@@ -116,7 +117,7 @@ const applyAll = async () => {
116
117
// 'fileOpts' limits the hf scope and avoids parse errors (we only have basic values in this statege):
117
118
fileOpts : `${ rootDir } /helmfile.tpl/helmfile-e2e.yaml` ,
118
119
logLevel : logLevelString ( ) ,
119
- args : [ 'apply' ] ,
120
+ args : hfArgs ,
120
121
} ,
121
122
{ streams : { stdout : d . stream . log , stderr : d . stream . error } } ,
122
123
)
0 commit comments