Update pkg/cluster/cluster.go
Co-authored-by: Mikkel Oscar Lyderik Larsen <mikkeloscar@users.noreply.github.com>
This commit is contained in:
parent
53ee08d30e
commit
0b9df9dae9
|
|
@ -1771,7 +1771,7 @@ func (c *Cluster) GetSwitchoverSchedule() string {
|
||||||
return c.GetSwitchoverScheduleAtTime(now)
|
return c.GetSwitchoverScheduleAtTime(now)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Cluster) GetSwitchoverScheduleAtTime(now time.Time) string {
|
func (c *Cluster) getSwitchoverScheduleAtTime(now time.Time) string {
|
||||||
var possibleSwitchover, schedule time.Time
|
var possibleSwitchover, schedule time.Time
|
||||||
|
|
||||||
for _, window := range c.Spec.MaintenanceWindows {
|
for _, window := range c.Spec.MaintenanceWindows {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue