Skip to content

Commit

Permalink
Merge pull request #333 from mengqiy/builderconfig
Browse files Browse the repository at this point in the history
🐛 try manager's config before kubeconfig
  • Loading branch information
k8s-ci-robot authored Feb 19, 2019
2 parents 12d9858 + 3bc2dec commit 52ef898
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/builder/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,10 @@ func (blder *Builder) doConfig() error {
if blder.config != nil {
return nil
}
if blder.mgr != nil {
blder.config = blder.mgr.GetConfig()
return nil
}
var err error
blder.config, err = getConfig()
return err
Expand Down

0 comments on commit 52ef898

Please sign in to comment.