Skip to content

Commit b93db46

Browse files
authored
syncing specifig chart (#4631)
1 parent 606a33b commit b93db46

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

pkg/chartRepo/ChartRepositoryService.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import (
2727
"io/ioutil"
2828
"net/http"
2929
"net/url"
30+
"strconv"
3031
"strings"
3132
"time"
3233

@@ -671,8 +672,8 @@ func (impl *ChartRepositoryServiceImpl) ValidateAndCreateChartRepo(request *Char
671672

672673
// Trigger chart sync job, ignore error
673674
chartProviderConfig := &ChartProviderConfig{
674-
ChartProviderId: "*",
675-
IsOCIRegistry: true,
675+
ChartProviderId: strconv.Itoa(chartRepo.Id),
676+
IsOCIRegistry: false,
676677
}
677678
err = impl.TriggerChartSyncManual(chartProviderConfig)
678679
if err != nil {
@@ -694,8 +695,8 @@ func (impl *ChartRepositoryServiceImpl) ValidateAndUpdateChartRepo(request *Char
694695

695696
// Trigger chart sync job, ignore error
696697
chartProviderConfig := &ChartProviderConfig{
697-
ChartProviderId: "*",
698-
IsOCIRegistry: true,
698+
ChartProviderId: strconv.Itoa(chartRepo.Id),
699+
IsOCIRegistry: false,
699700
}
700701
err = impl.TriggerChartSyncManual(chartProviderConfig)
701702
if err != nil {

0 commit comments

Comments
 (0)