mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-01 10:17:22 +02:00
switch to metav1.Duration for timeout options (#3121)
* switch to metav1.Duration for timeout options * fix custom config parsing and use safe coalesce
This commit is contained in:
@@ -27,7 +27,7 @@ import (
|
||||
|
||||
func (c *Controller) clusterResync(stopCh <-chan struct{}, wg *sync.WaitGroup) {
|
||||
defer wg.Done()
|
||||
ticker := time.NewTicker(c.opConfig.ResyncPeriod)
|
||||
ticker := time.NewTicker(c.opConfig.ResyncPeriod.Duration)
|
||||
|
||||
for {
|
||||
select {
|
||||
|
||||
Reference in New Issue
Block a user