Revert deleted assignment in #2146 (#2270)

This commit is contained in:
Manuel Alejandro de Brito Fontes 2018-03-28 20:33:03 -03:00 committed by GitHub
parent d459cf0333
commit 5bc4e2b062

View file

@ -399,6 +399,7 @@ func (n *NGINXController) getBackendServers(ingresses []*extensions.Ingress) ([]
}
if server.CertificateAuth.CAFileName == "" {
server.CertificateAuth = anns.CertificateAuth
// It is possible that no CAFileName is found in the secret
if server.CertificateAuth.CAFileName == "" {
glog.V(3).Infof("secret %v does not contain 'ca.crt', mutual authentication not enabled - ingress rule %v/%v.", server.CertificateAuth.Secret, ing.Namespace, ing.Name)