Skip to content

Commit

Permalink
While preparing we are using chartName and appName interchange
Browse files Browse the repository at this point in the history
  • Loading branch information
share2kanna committed Jun 14, 2024
1 parent 7d01994 commit 0b210cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions capten/agent/internal/api/app_values_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,11 +270,11 @@ func prepareAppDeployRequestFromSyncApp(data *agentpb.SyncAppData, values []byte
}

func prepareRepoName(appConfig *agentpb.SyncAppData) string {
repoInfo := strings.Split(appConfig.Config.AppName, "/")
repoInfo := strings.Split(appConfig.Config.ChartName, "/")

if len(repoInfo) != 2 {
// AppName don't have repo name, so using chartName as repoName
repoInfo = []string{appConfig.Config.ChartName, appConfig.Config.AppName}
repoInfo = []string{appConfig.Config.ChartName, appConfig.Config.ChartName}
}
return repoInfo[0]
}

0 comments on commit 0b210cb

Please sign in to comment.