silencing errors if cfg is not set

pull/318/head
Karolis Rusenas 2018-11-30 22:45:58 +00:00
parent 7a1fa8a713
commit c3fe7ad3ce
1 changed files with 4 additions and 0 deletions

View File

@ -39,6 +39,10 @@ func checkRelease(repo *types.Repository, namespace, name string, chart *hapi_ch
keelCfg, err := getKeelConfig(vals)
if err != nil {
if err == ErrPolicyNotSpecified {
// nothing to do
return plan, false, nil
}
log.WithFields(log.Fields{
"error": err,
}).Error("provider.helm: failed to get keel configuration for release")