Add running-in-cluster=false option.
This commit is contained in:
parent
b7e8109a6d
commit
5c8a25c833
4 changed files with 43 additions and 17 deletions
|
|
@ -294,6 +294,10 @@ func NewManager(kubeClient *client.Client) *Manager {
|
|||
|
||||
func (nginx *Manager) createCertsDir(base string) {
|
||||
if err := os.Mkdir(base, os.ModeDir); err != nil {
|
||||
if os.IsExist(err) {
|
||||
glog.Infof("%v already exists", err)
|
||||
return
|
||||
}
|
||||
glog.Fatalf("Couldn't create directory %v: %v", base, err)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue