Describe the bugnextSyncTime field in the CR isn't being updated if the trigger's schedule is changed. It's only being updated at the end of a sync cycle.
Steps to reproduce
Deploy a source PVC to src/datavol
Execute:
$ ./bin/kubectl-volsync replication -r test create
$ ./bin/kubectl-volsync replication -r test set-source --pvcname src/datavol
$ ./bin/kubectl-volsync replication -r test set-destination --destination dst/datavol
$ ./bin/kubectl-volsync replication -r test schedule --cronspec '0 * * * *'
I0617 12:37:32.820563 388656 replication.go:381] waiting for keys & address of destination to be available
I0617 12:37:37.829154 388656 replication.go:406] creating resources on Source
A sync will be triggered and nextSyncTime gets set to the top of the next hour (as it should):
Describe the bug
nextSyncTime
field in the CR isn't being updated if the trigger's schedule is changed. It's only being updated at the end of a sync cycle.Steps to reproduce
Deploy a source PVC to
src/datavol
Execute:
A sync will be triggered and
nextSyncTime
gets set to the top of the next hour (as it should):Edit the RS to have a '*/5' schedule:
$ kubectl edit -n src replicationsource/datavol-jm7qj
The
nextSyncTime
should be the nearest minute that is divisible by 5, but it's still top of the hour:Expected behavior
Actual results
Additional context Discovered based on #268
There is also a related issue where a manual trigger is set, then removed, causing no further syncs.