@@ -51,8 +51,7 @@ import (
5151 "github.com/argoproj-labs/argocd-autopilot/pkg/kube"
5252 apstore "github.com/argoproj-labs/argocd-autopilot/pkg/store"
5353 aputil "github.com/argoproj-labs/argocd-autopilot/pkg/util"
54- appset "github.com/argoproj/applicationset/api/v1alpha1"
55- argocd "github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1"
54+ argocdv1alpha1 "github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1"
5655 aev1alpha1 "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1"
5756 "github.com/codefresh-io/go-sdk/pkg/codefresh"
5857 platmodel "github.com/codefresh-io/go-sdk/pkg/codefresh/model"
@@ -410,7 +409,7 @@ func ensureGitData(cmd *cobra.Command, opts *RuntimeInstallOptions) error {
410409 }
411410
412411 baseURL , _ , _ , _ , _ , _ , _ := aputil .ParseGitUrl (opts .InsCloneOpts .Repo )
413- opts .gitProvider , err = cfgit .GetProvider (cfgit .ProviderType (opts .InsCloneOpts .Provider ), baseURL )
412+ opts .gitProvider , err = cfgit .GetProvider (cfgit .ProviderType (opts .InsCloneOpts .Provider ), baseURL , opts . InsCloneOpts . Auth . CertFile )
414413 if err != nil {
415414 return err
416415 }
@@ -1740,21 +1739,21 @@ func updateProject(repofs fs.FS, rt *runtime.Runtime) error {
17401739 // adding another gitGenerator to the project's ApplicationSet
17411740 // to support helm applications without adding the support in autopilot (TBD)
17421741 kustGenerator := appSet .Spec .Generators [0 ].Git
1743- appSet .Spec .Generators = append (appSet .Spec .Generators , appset .ApplicationSetGenerator {
1744- Git : & appset .GitGenerator {
1745- Files : []appset .GitFileGeneratorItem {
1742+ appSet .Spec .Generators = append (appSet .Spec .Generators , argocdv1alpha1 .ApplicationSetGenerator {
1743+ Git : & argocdv1alpha1 .GitGenerator {
1744+ Files : []argocdv1alpha1 .GitFileGeneratorItem {
17461745 {
17471746 Path : strings .Replace (kustGenerator .Files [0 ].Path , "config.json" , "config_helm.json" , 1 ),
17481747 },
17491748 },
17501749 RepoURL : kustGenerator .RepoURL ,
17511750 RequeueAfterSeconds : kustGenerator .RequeueAfterSeconds ,
17521751 Revision : kustGenerator .Revision ,
1753- Template : appset .ApplicationSetTemplate {
1754- Spec : argocd .ApplicationSpec {
1755- Source : argocd .ApplicationSource {
1752+ Template : argocdv1alpha1 .ApplicationSetTemplate {
1753+ Spec : argocdv1alpha1 .ApplicationSpec {
1754+ Source : argocdv1alpha1 .ApplicationSource {
17561755 Chart : "{{ srcChart }}" ,
1757- Helm : & argocd .ApplicationSourceHelm {
1756+ Helm : & argocdv1alpha1 .ApplicationSourceHelm {
17581757 ReleaseName : fmt .Sprintf ("%s-{{ appName }}" , rt .Name ),
17591758 Values : "{{ values }}" ,
17601759 },
0 commit comments