@@ -878,38 +878,6 @@ func createGitSources(ctx context.Context, opts *RuntimeInstallOptions) error {
878
878
return util .DecorateErrorWithDocsLink (fmt .Errorf ("failed to create \" %s\" : %w" , store .Get ().GitSourceName , err ))
879
879
}
880
880
881
- if ! opts .gitProvider .SupportsMarketplace () {
882
- message = fmt .Sprintf ("Skipping \" %s\" with git provider \" %s\" " , store .Get ().MarketplaceGitSourceName , opts .gitProvider .Type ())
883
- handleCliStep (reporter .InstallStepCreateMarketplaceGitsource , message , err , false , true )
884
- return nil
885
- }
886
-
887
- mpCloneOpts := & apgit.CloneOptions {
888
- Repo : store .Get ().MarketplaceRepo ,
889
- FS : fs .Create (memfs .New ()),
890
- Progress : opts .InsCloneOpts .Progress ,
891
- }
892
- mpCloneOpts .Parse ()
893
-
894
- err = legacyGitSourceCreate (ctx , & GitSourceCreateOptions {
895
- InsCloneOpts : opts .InsCloneOpts ,
896
- GsCloneOpts : mpCloneOpts ,
897
- GitProvider : opts .gitProvider ,
898
- GsName : store .Get ().MarketplaceGitSourceName ,
899
- RuntimeName : opts .RuntimeName ,
900
- CreateDemoResources : false ,
901
- Exclude : "**/images/**/*" ,
902
- Include : "workflows/**/*.yaml" ,
903
- GatewayName : opts .GatewayName ,
904
- GatewayNamespace : opts .GatewayNamespace ,
905
- useGatewayAPI : opts .useGatewayAPI ,
906
- })
907
- message = fmt .Sprintf ("Creating %s" , store .Get ().MarketplaceGitSourceName )
908
- handleCliStep (reporter .InstallStepCreateMarketplaceGitsource , message , err , false , true )
909
- if err != nil {
910
- return util .DecorateErrorWithDocsLink (fmt .Errorf ("failed to create \" %s\" : %w" , store .Get ().MarketplaceGitSourceName , err ))
911
- }
912
-
913
881
return nil
914
882
}
915
883
0 commit comments