mirror of
https://github.com/komodorio/helm-dashboard.git
synced 2026-03-24 11:48:04 +00:00
In case no repositories configured, fall back to empty search
This commit is contained in:
@@ -68,7 +68,11 @@ func (d *DataLayer) ChartRepoVersions(chartName string) (res []*RepoChartElement
|
|||||||
return d.runCommandHelm(cmd...)
|
return d.runCommandHelm(cmd...)
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
if strings.Contains(err.Error(), "no repositories configured") {
|
||||||
|
out = "[]"
|
||||||
|
} else {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
err = json.Unmarshal([]byte(out), &res)
|
err = json.Unmarshal([]byte(out), &res)
|
||||||
|
|||||||
Reference in New Issue
Block a user