@@ -480,15 +480,15 @@ func ensureIngressClass(ctx context.Context, opts *RuntimeInstallOptions) error
480
480
ingressClassNames = append (ingressClassNames , ic .Name )
481
481
ingressClassNameToController [ic .Name ] = ingressutil .GetController (string (controller ))
482
482
483
- if opts .IngressClass == ic .Name { //if ingress class provided via flag
483
+ if opts .IngressClass == ic .Name { // if ingress class provided via flag
484
484
isValidClass = true
485
485
}
486
486
break
487
487
}
488
488
}
489
489
}
490
490
491
- if opts .IngressClass != "" { //if ingress class provided via flag
491
+ if opts .IngressClass != "" { // if ingress class provided via flag
492
492
if ! isValidClass {
493
493
return fmt .Errorf ("ingress class '%s' is not supported" , opts .IngressClass )
494
494
}
@@ -581,13 +581,18 @@ func runRuntimeInstall(ctx context.Context, opts *RuntimeInstallOptions) error {
581
581
}()
582
582
583
583
ingressControllerName := opts .IngressController .Name ()
584
+ gitProvider , err := parseGitProvider (string (opts .gitProvider .Type ()))
585
+ if err != nil {
586
+ return err
587
+ }
584
588
585
589
repoURL := opts .InsCloneOpts .URL ()
586
590
token , iv , err := createRuntimeOnPlatform (ctx , & model.RuntimeInstallationArgs {
587
591
RuntimeName : opts .RuntimeName ,
588
592
Cluster : server ,
589
593
RuntimeVersion : runtimeVersion ,
590
594
IngressHost : & opts .IngressHost ,
595
+ GitProvider : model .GitProviders (gitProvider ),
591
596
InternalIngressHost : & opts .InternalIngressHost ,
592
597
IngressClass : & opts .IngressClass ,
593
598
IngressController : & ingressControllerName ,
0 commit comments