We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 428bace commit 9050ebbCopy full SHA for 9050ebb
controllers/hcpvaultsecretsapp_controller.go
@@ -303,9 +303,8 @@ func (r *HCPVaultSecretsAppReconciler) startOrphanedShadowSecretCleanup(ctx cont
303
if ctx.Err() != nil {
304
err = ctx.Err()
305
}
306
- default:
307
- // runs the cleanup process once every hour or as specified by the user
308
- time.Sleep(r.CleanupOrphanedShadowSecretInterval)
+ // runs the cleanup process once every hour or as specified by the user
+ case <-time.After(r.CleanupOrphanedShadowSecretInterval):
309
err = r.cleanupOrphanedShadowSecrets(ctx)
310
311
0 commit comments