- matching ee codebase at 0afe57034449ee0e9f333d92c252a13995a93019

- helm install using endpoint middleware
- remove trailing slash from added/persisted helm repo urls
This commit is contained in:
zees-dev
2021-08-31 15:23:50 +12:00
parent 605dd65ed4
commit 3340ca3060
3 changed files with 4 additions and 2 deletions

View File

@@ -22,6 +22,8 @@ type addHelmRepoUrlPayload struct {
}
func (p *addHelmRepoUrlPayload) Validate(_ *http.Request) error {
p.URL = strings.TrimSuffix(p.URL, "/")
if p.URL == "" {
return errors.New("URL is required")
}