s.Log("name %s exists but is not in use, reusing name",start)
s.Log("name %s exists but is not in use, reusing name",start)
returnstart,nil
returnstart,nil
}elseifreuse{
}elseifreuse{
return"",errors.New("cannot re-use a name that is still in use")
return"",fmt.Errorf("a released named %s is in use, cannot re-use a name that is still in use",start)
}
}
return"",fmt.Errorf("a release named %s already exists.\nRun: helm ls --all %s; to check the status of the release\nOr run: helm del --purge %s; to delete it",start,start,start)
return"",fmt.Errorf("a release named %s already exists.\nRun: helm ls --all %s; to check the status of the release\nOr run: helm del --purge %s; to delete it",start,start,start)