From 12974fbae852771e44c12f3b6fe03987ce7de539 Mon Sep 17 00:00:00 2001 From: "taekyu.kang" Date: Fri, 20 Oct 2023 16:28:32 +0900 Subject: [PATCH] add parameter for creating lma --- internal/usecase/app-group.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/usecase/app-group.go b/internal/usecase/app-group.go index 3b8f9dcd..1595bafa 100644 --- a/internal/usecase/app-group.go +++ b/internal/usecase/app-group.go @@ -79,7 +79,9 @@ func (u *AppGroupUsecase) Create(ctx context.Context, dto domain.AppGroup) (id d // check cloudAccount tksCloudAccountId := "" + tksObjectStore := "minio" if cluster.CloudService != domain.CloudService_BYOH { + tksObjectStore = "aws" cloudAccounts, err := u.cloudAccountRepo.Fetch(cluster.OrganizationId, nil) if err != nil { return "", httpErrors.NewBadRequestError(fmt.Errorf("Failed to get cloudAccounts"), "", "") @@ -126,6 +128,7 @@ func (u *AppGroupUsecase) Create(ctx context.Context, dto domain.AppGroup) (id d "alert_tks=" + viper.GetString("external-address") + "/system-api/1.0/alerts", "alert_slack=" + viper.GetString("alert-slack"), "cloud_account_id=" + tksCloudAccountId, + "object_store=" + tksObjectStore, } switch dto.AppGroupType {