Skip to main content

Schedule plan

It can be tedious to manually create a document for every shipment. Nevertheless, to be gitops, such things must be explicitly declared. One can use a placement schedule rule to generate those documents.

The following specifies a schedule that spans from 2023-03-20 to 2024-03-11, excluding the week of 2023-12-25. It will plan the placements of region 1 first, region 9 second, etc. Within the placements of region 1, it will plan XL sales first, L sales second, etc.

apiVersion: edgecell.io/v1
kind: SchedulePlan
metadata:
name: initial-plan
namespace: mcdougals.com
spec:
timeframe:
start: 2023W12
end: 2024W11
exclude:
- 2023W52
sequence:
- priority: 1
label: region
order: [1,9,2,3,6,7,8]
- priority: 2
label: sales
order: [XL, L, M, S, XS]

Note that some values can be excluded, which means they are not scheduled.

The IDE provides tools to visualize these schedule plans.