mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-17 07:45:24 +01:00
Remove the workaround for checking chart existence
Signed-off-by: wang yan <wangyan@vmware.com>
This commit is contained in:
parent
c26f655bce
commit
b5cb984455
@ -130,13 +130,6 @@ func (a *adapter) ChartExist(name, version string) (bool, error) {
|
||||
if httpErr, ok := err.(*common_http.Error); ok && httpErr.Code == http.StatusNotFound {
|
||||
return false, nil
|
||||
}
|
||||
// TODO this is a workaround for https://github.com/goharbor/harbor/issues/7171
|
||||
if httpErr, ok := err.(*common_http.Error); ok && httpErr.Code == http.StatusInternalServerError {
|
||||
if strings.Contains(httpErr.Message, "no chart name found") ||
|
||||
strings.Contains(httpErr.Message, "No chart version found") {
|
||||
return false, nil
|
||||
}
|
||||
}
|
||||
return false, err
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user