fleet icon indicating copy to clipboard operation
fleet copied to clipboard

support schedule based rollout

Open ibrokethecloud opened this issue 3 years ago • 6 comments

Users should be able to rollout update to downstream clusters based on a predefined schedule.

This is useful for users running a large number of clusters, but would prefer to have the rollout perform during a specific window.

Also related to: https://github.com/rancher/rancher/issues/30266

ibrokethecloud avatar May 20 '21 23:05 ibrokethecloud

Our use case for this would include the option for a global schedule or a targeted schedule per cluster. With the targeted option overriding the global value.

defaultNamespace: test
  schedule:
    # global schedule details
    range: '03:00 - 04:00'
    weekday: saturday

targetCustomizations:
- name: cluster1
  clusterSelector:
    matchLabels:
      management.cattle.io/cluster-display-name: cluster1
  schedule:
    # cluster specific schedule
    range: '03:00 - 04:00'
    period: daily  ( or weekly or monthly etc )
    
- name: cluster2
  clusterSelector:
    matchLabels:
      management.cattle.io/cluster-display-name: cluster2
  schedule:
    # cluster specific schedule
    weekday: wednesday
    period: monthly

shane-davidson avatar May 21 '21 01:05 shane-davidson

This would be huge for us.

I'd like to at least advance the idea that this could potentially be something worth controlling on a cluster or cluster-group level, separate from the per-git-repo or per-bundle settings in fleet.yaml. That said, even if the schedule has to be repeated in every repo's fleet.yaml, that'd still be a huge improvement over not having scheduling control at all.

(Also, as long as we can specify schedules in fleet.yaml, we could use the range: global.fleet.clusterAnnotations.schedule.example.com/range pattern to pull the range from annotations regardless if that was desirable).

philomory avatar May 22 '21 02:05 philomory

@deniseschannon This was removed from the 2.6 milestone, is there any chance that this could be added back as part of the 2.6.1, 2.6.2 or 2.6.x milestones?

philomory avatar Sep 07 '21 19:09 philomory

@deniseschannon @ibrokethecloud Will this be available in the future release?

hyunsun avatar Sep 17 '21 18:09 hyunsun

Hi guys !

Are you still aiming at implementing this feature for the 2.6.X release ?

Athosone avatar Feb 21 '22 19:02 Athosone

~~It seems that the feature has been postponed many times, there are any news? Do you accept contributions? I would be happy to implement this feature.~~

A PR is already proposed.

CiraciNicolo avatar May 02 '24 10:05 CiraciNicolo