Fix bug when reading the readme.md of helm chart (#11059)

Fix bug when reading the readme.md of helm chart

Signed-off-by: Wenkai Yin <yinw@vmware.com>
This commit is contained in:
Wenkai Yin(尹文开) 2020-03-16 14:26:50 +08:00 committed by GitHub
parent 46fe1182b7
commit d250e6998e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,11 +64,11 @@ func (cho *operator) GetDetails(content []byte) (*VersionDetails, error) {
for _, v := range chartData.Raw {
if strings.ToUpper(v.Name) == readmeFileName {
files[readmeFileName] = string(v.Data)
break
continue
}
if strings.ToUpper(v.Name) == valuesFileName {
files[valuesFileName] = string(v.Data)
break
continue
}
}