volsync icon indicating copy to clipboard operation
volsync copied to clipboard

Add trigger methods for synchronization

Open sallyom opened this issue 4 years ago • 2 comments

Currently, the only method for TriggerSpec is a cronspec string. A webhook endpoint trigger and/or a kubeapi trigger will provide more flexibility. With these methods, an on-demand synchronization will be enabled.

sallyom avatar Mar 31 '21 21:03 sallyom

Proposal for the API version:

spec:
  trigger:
    manual: <int*>
status:
  observedManual: <int*>

if observedManual < manual then sync. At completion of sync, observedManual = manual.

So, by setting manual to a higher value, a sync gets triggered. Due to caching and failures, I'm not sure we can just have a simple != comparison. More thought is needed here.

JohnStrunk avatar Apr 01 '21 18:04 JohnStrunk

Based on backube/scribe#153, can we close this?

JohnStrunk avatar Jun 16 '21 12:06 JohnStrunk