fix bug with new and running configuration comparison

This commit is contained in:
Elvin Efendi 2019-09-24 21:36:37 -04:00
parent 113f8d2931
commit d8a3d616b4

View file

@ -795,9 +795,7 @@ func clearCertificates(config *ingress.Configuration) {
var clearedServers []*ingress.Server
for _, server := range config.Servers {
copyOfServer := *server
if copyOfServer.SSLCert != nil {
copyOfServer.SSLCert = &ingress.SSLCert{PemFileName: copyOfServer.SSLCert.PemFileName}
}
copyOfServer.SSLCert = nil
clearedServers = append(clearedServers, &copyOfServer)
}
config.Servers = clearedServers