Fix e2e tests to not fail if the ca key is set

Signed-off-by: Max Ehrlich <max.ehr@gmail.com>
This commit is contained in:
Max Ehrlich 2018-09-13 18:23:53 -04:00
parent 25e86d5588
commit 2b5bcf3a35
No known key found for this signature in database
GPG Key ID: 439AC62D3C8A495A

View File

@ -235,7 +235,7 @@ func WaitCertificateIssuedValid(certClient clientset.CertificateInterface, secre
return false, err
}
if len(secret.Data) != 2 {
if !(len(secret.Data) == 2 || len(secret.Data) == 3) {
glog.Infof("Expected 2 keys in certificate secret, but there was %d", len(secret.Data))
return false, nil
}