@@ -51,8 +51,7 @@ import (
51
51
"github.com/argoproj-labs/argocd-autopilot/pkg/kube"
52
52
apstore "github.com/argoproj-labs/argocd-autopilot/pkg/store"
53
53
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"
56
55
aev1alpha1 "github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1"
57
56
"github.com/codefresh-io/go-sdk/pkg/codefresh"
58
57
platmodel "github.com/codefresh-io/go-sdk/pkg/codefresh/model"
@@ -410,7 +409,7 @@ func ensureGitData(cmd *cobra.Command, opts *RuntimeInstallOptions) error {
410
409
}
411
410
412
411
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 )
414
413
if err != nil {
415
414
return err
416
415
}
@@ -1740,21 +1739,21 @@ func updateProject(repofs fs.FS, rt *runtime.Runtime) error {
1740
1739
// adding another gitGenerator to the project's ApplicationSet
1741
1740
// to support helm applications without adding the support in autopilot (TBD)
1742
1741
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 {
1746
1745
{
1747
1746
Path : strings .Replace (kustGenerator .Files [0 ].Path , "config.json" , "config_helm.json" , 1 ),
1748
1747
},
1749
1748
},
1750
1749
RepoURL : kustGenerator .RepoURL ,
1751
1750
RequeueAfterSeconds : kustGenerator .RequeueAfterSeconds ,
1752
1751
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 {
1756
1755
Chart : "{{ srcChart }}" ,
1757
- Helm : & argocd .ApplicationSourceHelm {
1756
+ Helm : & argocdv1alpha1 .ApplicationSourceHelm {
1758
1757
ReleaseName : fmt .Sprintf ("%s-{{ appName }}" , rt .Name ),
1759
1758
Values : "{{ values }}" ,
1760
1759
},
0 commit comments