File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -243,8 +243,7 @@ type Manager struct {
243
243
}
244
244
245
245
// issue will step through the entire issuance flow for a volume.
246
- func (m * Manager ) issue (volumeID string ) error {
247
- ctx := context .TODO ()
246
+ func (m * Manager ) issue (ctx context.Context , volumeID string ) error {
248
247
log := m .log .WithValues ("volume_id" , volumeID )
249
248
log .Info ("Processing issuance" )
250
249
@@ -512,7 +511,7 @@ func (m *Manager) ManageVolume(volumeID string) error {
512
511
Cap : time .Minute ,
513
512
}, func () (bool , error ) {
514
513
log .Info ("Triggering new issuance" )
515
- if err := m .issue (volumeID ); err != nil {
514
+ if err := m .issue (ctx , volumeID ); err != nil {
516
515
log .Error (err , "Failed to issue certificate, retrying after applying exponential backoff" )
517
516
return false , nil
518
517
}
You can’t perform that action at this time.
0 commit comments