Skip to content

Commit cf77048

Browse files
committed
reduce issuance poll interval to 200ms
Signed-off-by: James Munnelly <[email protected]>
1 parent a58c86c commit cf77048

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

manager/manager.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -496,9 +496,9 @@ func certificateRequestCanBeResumed(req *cmapi.CertificateRequest) bool {
496496
func (m *Manager) handleRequest(ctx context.Context, volumeID string, meta metadata.Metadata, key crypto.PrivateKey, req *cmapi.CertificateRequest) error {
497497
log := m.log.WithValues("volume_id", volumeID)
498498

499-
// Poll every 1s for the CertificateRequest to be ready
499+
// Poll every 200ms for the CertificateRequest to be ready
500500
lastFailureReason := ""
501-
if err := wait.PollUntilWithContext(ctx, time.Second, func(ctx context.Context) (done bool, err error) {
501+
if err := wait.PollUntilWithContext(ctx, time.Millisecond*200, func(ctx context.Context) (done bool, err error) {
502502
updatedReq, err := m.lister.CertificateRequests(req.Namespace).Get(req.Name)
503503
if apierrors.IsNotFound(err) {
504504
// A NotFound error implies something deleted the resource - fail

0 commit comments

Comments
 (0)