@@ -232,12 +232,12 @@ const initCmd = new Command({
232232 values : valuesFile ,
233233 'set-value' : setValue ,
234234 'set-file' : setFile ,
235- 'skip-cluster-test' : skipClusterTest ,
236235 'app-proxy-ingress-class' : appProxyIngressClass ,
237236 'env-vars' : envVars ,
238237 } = _argv ;
239238 let {
240239 yes : noQuestions ,
240+ 'skip-cluster-test' : skipClusterTest ,
241241 'kube-context-name' : kubeContextName ,
242242 'kube-namespace' : kubeNamespace ,
243243 'set-default-runtime' : shouldMakeDefaultRe ,
@@ -262,19 +262,19 @@ const initCmd = new Command({
262262 valuesObj = YAML . parse ( valuesFileStr ) ;
263263 noQuestions = true ;
264264
265- if ( ! kubeNamespace && valuesObj . Namespace ) {
265+ if ( ! kubeNamespace && _ . has ( valuesObj , ' Namespace' ) ) {
266266 kubeNamespace = valuesObj . Namespace ;
267267 }
268- if ( ! kubeContextName && valuesObj . Context ) {
268+ if ( ! kubeContextName && _ . has ( valuesObj , ' Context' ) ) {
269269 kubeContextName = valuesObj . Context ;
270270 }
271- if ( ! url && valuesObj . CodefreshHost ) {
271+ if ( ! url && _ . has ( valuesObj , ' CodefreshHost' ) ) {
272272 url = valuesObj . CodefreshHost ;
273273 }
274- if ( ! token && valuesObj . Token ) {
274+ if ( ! token && _ . has ( valuesObj , ' Token' ) ) {
275275 token = valuesObj . Token ;
276276 }
277- if ( ! name && valuesObj . AgentId ) {
277+ if ( ! name && _ . has ( valuesObj , ' AgentId' ) ) {
278278 name = valuesObj . AgentId ;
279279 }
280280 if ( typeof _ . get ( valuesObj , 'Monitor.Enabled' ) !== 'undefined' ) {
@@ -301,6 +301,9 @@ const initCmd = new Command({
301301 if ( _ . has ( valuesObj , 'DockerRegistry' ) && ! dockerRegistry ) {
302302 dockerRegistry = _ . get ( valuesObj , 'DockerRegistry' ) ;
303303 }
304+ if ( _ . has ( valuesObj , 'SkipClusterTest' ) && _ . isUndefined ( skipClusterTest ) ) {
305+ skipClusterTest = _ . get ( valuesObj , 'SkipClusterTest' ) ;
306+ }
304307 }
305308 if ( ! url ) {
306309 url = DEFAULTS . URL ;
@@ -480,15 +483,25 @@ const initCmd = new Command({
480483 installationPlan . addContext ( 'argv' , _argv ) ;
481484
482485 // run cluster acceptance tests
483- if ( ! _ . get ( valuesObj , 'SkipClusterTest' ) ) {
484- installationPlan . addStep ( {
485- name : 'run cluster acceptance tests' ,
486- func : runClusterAcceptanceTests ,
487- arg : { kubeNamespace, kubeConfigPath, kubeContextName } ,
488- installationEvent : installationProgress . events . ACCEPTANCE_TESTS_RAN ,
489- condition : ! skipClusterTest ,
490- } ) ;
491- }
486+ installationPlan . addStep ( {
487+ name : 'run cluster acceptance tests' ,
488+ func : runClusterAcceptanceTests ,
489+ arg : {
490+ apiHost : sdk . config . context . url ,
491+ kubeNamespace,
492+ kubeConfigPath,
493+ kubeContextName,
494+ dockerRegistry,
495+ envVars,
496+ verbose,
497+ valuesFile,
498+ setValue,
499+ setFile,
500+ } ,
501+ installationEvent : installationProgress . events . ACCEPTANCE_TESTS_RAN ,
502+ condition : ! skipClusterTest ,
503+ } ) ;
504+
492505 // generate new agent name
493506 installationPlan . addContext ( 'agentName' , name ? name . trim ( ) : name ) ;
494507 installationPlan . addStep ( {
0 commit comments