bugfix: when secret includes ca.crt store it on disk even in dynamic cert mode
This commit is contained in:
parent
c28247abf6
commit
5667ea5d67
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ func (s *k8sStore) getPemCertificate(secretName string) (*ingress.SSLCert, error
|
||||||
return nil, fmt.Errorf("unexpected error creating SSL Cert: %v", err)
|
return nil, fmt.Errorf("unexpected error creating SSL Cert: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
if !s.isDynamicCertificatesEnabled {
|
if !s.isDynamicCertificatesEnabled || len(ca) > 0 {
|
||||||
err = ssl.StoreSSLCertOnDisk(s.filesystem, nsSecName, sslCert)
|
err = ssl.StoreSSLCertOnDisk(s.filesystem, nsSecName, sslCert)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("error while storing certificate and key: %v", err)
|
return nil, fmt.Errorf("error while storing certificate and key: %v", err)
|
||||||
|
|
Loading…
Reference in a new issue