Skip to content

Commit

Permalink
Don't fail resolving env if could'nt read a value (#404)
Browse files Browse the repository at this point in the history
  • Loading branch information
eashi authored and ahmelsayed committed Oct 30, 2019
1 parent 4d0cf5e commit d785e63
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/handler/scale_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,8 @@ func (h *ScaleHandler) resolveEnv(container *core_v1.Container, namespace string
namespace)
}
} else {
return nil, fmt.Errorf("cannot resolve env %s to a value. fieldRef and resourceFieldRef env are skipped", envVar.Name)
log.Warningf("cannot resolve env %s to a value. fieldRef and resourceFieldRef env are skipped", envVar.Name)
continue
}

}
Expand Down

0 comments on commit d785e63

Please sign in to comment.