@@ -480,15 +480,15 @@ func ensureIngressClass(ctx context.Context, opts *RuntimeInstallOptions) error
480480 ingressClassNames = append (ingressClassNames , ic .Name )
481481 ingressClassNameToController [ic .Name ] = ingressutil .GetController (string (controller ))
482482
483- if opts .IngressClass == ic .Name { //if ingress class provided via flag
483+ if opts .IngressClass == ic .Name { // if ingress class provided via flag
484484 isValidClass = true
485485 }
486486 break
487487 }
488488 }
489489 }
490490
491- if opts .IngressClass != "" { //if ingress class provided via flag
491+ if opts .IngressClass != "" { // if ingress class provided via flag
492492 if ! isValidClass {
493493 return fmt .Errorf ("ingress class '%s' is not supported" , opts .IngressClass )
494494 }
@@ -581,13 +581,18 @@ func runRuntimeInstall(ctx context.Context, opts *RuntimeInstallOptions) error {
581581 }()
582582
583583 ingressControllerName := opts .IngressController .Name ()
584+ gitProvider , err := parseGitProvider (string (opts .gitProvider .Type ()))
585+ if err != nil {
586+ return err
587+ }
584588
585589 repoURL := opts .InsCloneOpts .URL ()
586590 token , iv , err := createRuntimeOnPlatform (ctx , & model.RuntimeInstallationArgs {
587591 RuntimeName : opts .RuntimeName ,
588592 Cluster : server ,
589593 RuntimeVersion : runtimeVersion ,
590594 IngressHost : & opts .IngressHost ,
595+ GitProvider : model .GitProviders (gitProvider ),
591596 InternalIngressHost : & opts .InternalIngressHost ,
592597 IngressClass : & opts .IngressClass ,
593598 IngressController : & ingressControllerName ,
0 commit comments