Skip to content

Commit 367c07e

Browse files
committed
passing allowInsecureConnection
1 parent 85fdd65 commit 367c07e

File tree

6 files changed

+329
-311
lines changed

6 files changed

+329
-311
lines changed

api/helm-app/gRPC/applist.pb.go

Lines changed: 303 additions & 291 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/helm-app/gRPC/applist.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,7 @@ message ChartRepository {
281281
string url = 2;
282282
string username = 3;
283283
string password = 4;
284+
bool allowInsecureConnection = 5;
284285
}
285286

286287
message InstallReleaseRequest {

api/helm-app/service/HelmAppService.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1020,10 +1020,11 @@ func (impl *HelmAppServiceImpl) TemplateChart(ctx context.Context, templateChart
10201020
}
10211021
} else {
10221022
chartRepository = &gRPC.ChartRepository{
1023-
Name: appStoreAppVersion.AppStore.ChartRepo.Name,
1024-
Url: appStoreAppVersion.AppStore.ChartRepo.Url,
1025-
Username: appStoreAppVersion.AppStore.ChartRepo.UserName,
1026-
Password: appStoreAppVersion.AppStore.ChartRepo.Password,
1023+
Name: appStoreAppVersion.AppStore.ChartRepo.Name,
1024+
Url: appStoreAppVersion.AppStore.ChartRepo.Url,
1025+
Username: appStoreAppVersion.AppStore.ChartRepo.UserName,
1026+
Password: appStoreAppVersion.AppStore.ChartRepo.Password,
1027+
AllowInsecureConnection: appStoreAppVersion.AppStore.ChartRepo.AllowInsecureConnection,
10271028
}
10281029
}
10291030

pkg/appStore/installedApp/service/AppStoreDeploymentService.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -924,10 +924,11 @@ func (impl *AppStoreDeploymentServiceImpl) linkHelmApplicationToChartStore(insta
924924
}
925925
if chartRepoInfo != nil {
926926
updateReleaseRequest.ChartRepository = &bean4.ChartRepository{
927-
Name: chartRepoInfo.Name,
928-
Url: chartRepoInfo.Url,
929-
Username: chartRepoInfo.UserName,
930-
Password: chartRepoInfo.Password,
927+
Name: chartRepoInfo.Name,
928+
Url: chartRepoInfo.Url,
929+
Username: chartRepoInfo.UserName,
930+
Password: chartRepoInfo.Password,
931+
AllowInsecureConnection: chartRepoInfo.AllowInsecureConnection,
931932
}
932933
}
933934
res, err := impl.helmAppService.UpdateApplicationWithChartInfo(ctx, installAppVersionRequest.ClusterId, updateReleaseRequest)

pkg/appStore/installedApp/service/EAMode/EAModeDeploymentService.go

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,11 @@ func (impl *EAModeDeploymentServiceImpl) InstallApp(installAppVersionRequest *ap
126126
}
127127
} else {
128128
chartRepository = &gRPC.ChartRepository{
129-
Name: appStoreAppVersion.AppStore.ChartRepo.Name,
130-
Url: appStoreAppVersion.AppStore.ChartRepo.Url,
131-
Username: appStoreAppVersion.AppStore.ChartRepo.UserName,
132-
Password: appStoreAppVersion.AppStore.ChartRepo.Password,
129+
Name: appStoreAppVersion.AppStore.ChartRepo.Name,
130+
Url: appStoreAppVersion.AppStore.ChartRepo.Url,
131+
Username: appStoreAppVersion.AppStore.ChartRepo.UserName,
132+
Password: appStoreAppVersion.AppStore.ChartRepo.Password,
133+
AllowInsecureConnection: appStoreAppVersion.AppStore.ChartRepo.AllowInsecureConnection,
133134
}
134135
}
135136
installReleaseRequest := &gRPC.InstallReleaseRequest{
@@ -338,10 +339,11 @@ func (impl *EAModeDeploymentServiceImpl) updateApplicationWithChartInfo(ctx cont
338339
}
339340
} else {
340341
chartRepository = &gRPC.ChartRepository{
341-
Name: appStoreApplicationVersion.AppStore.ChartRepo.Name,
342-
Url: appStoreApplicationVersion.AppStore.ChartRepo.Url,
343-
Username: appStoreApplicationVersion.AppStore.ChartRepo.UserName,
344-
Password: appStoreApplicationVersion.AppStore.ChartRepo.Password,
342+
Name: appStoreApplicationVersion.AppStore.ChartRepo.Name,
343+
Url: appStoreApplicationVersion.AppStore.ChartRepo.Url,
344+
Username: appStoreApplicationVersion.AppStore.ChartRepo.UserName,
345+
Password: appStoreApplicationVersion.AppStore.ChartRepo.Password,
346+
AllowInsecureConnection: appStoreApplicationVersion.AppStore.ChartRepo.AllowInsecureConnection,
345347
}
346348
}
347349

pkg/appStore/installedApp/service/FullMode/resource/NotesService.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,11 @@ func (impl *InstalledAppResourceServiceImpl) findNotesForArgoApplication(install
101101
ValuesYaml: installedAppVerison.ValuesYaml,
102102
K8SVersion: k8sServerVersion.String(),
103103
ChartRepository: &gRPC.ChartRepository{
104-
Name: appStoreAppVersion.AppStore.ChartRepo.Name,
105-
Url: appStoreAppVersion.AppStore.ChartRepo.Url,
106-
Username: appStoreAppVersion.AppStore.ChartRepo.UserName,
107-
Password: appStoreAppVersion.AppStore.ChartRepo.Password,
104+
Name: appStoreAppVersion.AppStore.ChartRepo.Name,
105+
Url: appStoreAppVersion.AppStore.ChartRepo.Url,
106+
Username: appStoreAppVersion.AppStore.ChartRepo.UserName,
107+
Password: appStoreAppVersion.AppStore.ChartRepo.Password,
108+
AllowInsecureConnection: appStoreAppVersion.AppStore.ChartRepo.AllowInsecureConnection,
108109
},
109110
ReleaseIdentifier: &gRPC.ReleaseIdentifier{
110111
ReleaseNamespace: installedAppVerison.InstalledApp.Environment.Namespace,

0 commit comments

Comments
 (0)