mirror of
https://github.com/rancher/dynamiclistener.git
synced 2025-05-28 17:46:00 +00:00
Merge pull request #33 from galal-hussein/fix_load_certs
Fixing loading certs to work with etcd only nodes
This commit is contained in:
commit
fc8cf5f3ea
@ -347,7 +347,7 @@ func (l *listener) loadCert() (*tls.Certificate, error) {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if l.cert != nil && l.version == secret.ResourceVersion {
|
||||
if l.cert != nil && l.version == secret.ResourceVersion && secret.ResourceVersion != "" {
|
||||
return l.cert, nil
|
||||
}
|
||||
|
||||
@ -360,7 +360,7 @@ func (l *listener) loadCert() (*tls.Certificate, error) {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if l.cert != nil && l.version == secret.ResourceVersion {
|
||||
if l.cert != nil && l.version == secret.ResourceVersion && secret.ResourceVersion != "" {
|
||||
return l.cert, nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user