func (tc *testContext) approveAllCSRs() error {
	csrs, err := tc.listPendingCSRs()
	if err != nil {
		return errors.Wrap(err, "error listing CSRs")
	}
	for _, csr := range csrs {
		if err = tc.approve(csr); err != nil {
			return errors.Wrapf(err, "error approving csr %s", csr.GetName())
		}
	}
	return nil
}
// TODO: vSphere CSRs are not being approved due to a hostname mismatch. This is an issue only because the
//       ConfigMap controller does not have the ability to approve CSRs yet. This needs to be removed when that
//       functionality is added in https://issues.redhat.com/browse/WINC-581
// approveAllCSRs approves all CSRs that are waiting for an approval
vSphere CSRs are not being approved due to a hostname mismatch. This is an issue only because the
ConfigMap controller does not have the ability to approve CSRs yet.
// TODO : vSphere CSRs are not being approved due to a hostname mismatch . This is an issue only because the // ConfigMap controller does not have the ability to approve CSRs yet . This needs to be removed when that // functionality is added in https : // issues . redhat . com / browse / WINC - 581 // approveAllCSRs approves all CSRs that are waiting for an approval
func (tc *testContext) approveAllCSRs() error {
	csrs, err := tc.listPendingCSRs()
	if err != nil {
		return errors.Wrap(err, "error listing CSRs")
	}
	for _, csr := range csrs {
		if err = tc.approve(csr); err != nil {
			return errors.Wrapf(err, "error approving csr %s", csr.GetName())
		}
	}
	return nil
}
func ( tc * testContext ) approveAllCSRs ( ) error { csrs , err := tc . listPendingCSRs ( ) if err != nil { return errors . Wrap ( err , " " ) } for _ , csr := range csrs { if err = tc . approve ( csr ) ; err != nil { return errors . Wrapf ( err , " " , csr . GetName ( ) ) } } return nil }
vSphere CSRs are not being approved due to a hostname mismatch.
vSphere CSRs are not being approved due to a hostname mismatch .