...

Text file src/edge-infra.dev/pkg/edge/rollouts/examples/simple-plan.json

Documentation: edge-infra.dev/pkg/edge/rollouts/examples

     1{
     2    "id": "abc1234-def",
     3    "name": "Test rollout plan",
     4    "description": "This is a test rollout plan",
     5    "initial": [
     6        "tg1"
     7    ],
     8    "nodes": [
     9        {
    10            "nodeType": "TimerGate",
    11            "data": {
    12                "key": "g1",
    13                "label": "TimerGate",
    14                "startTime": "2024-08-30T17:01:29.639722Z",
    15                "delayMinutes": 10
    16            }
    17        },
    18        {
    19            "nodeType": "ApprovalGate",
    20            "data": {
    21                "key": "ag1",
    22                "label": "ApprovalGate"
    23            }
    24        },
    25        {
    26            "nodeType": "TargetGroup",
    27            "data": {
    28                "key": "tg1",
    29                "label": "TargetGroup",
    30                "selector": "dev",
    31                "artifactName": "store",
    32                "artifactVersion": "0.21"
    33            }
    34        },
    35        {
    36            "nodeType": "TargetGroup",
    37            "data": {
    38                "key": "tg2",
    39                "label": "TargetGroup",
    40                "selector": "staging:east",
    41                "artifactName": "store",
    42                "artifactVersion": "0.21"
    43            }
    44        },
    45        {
    46            "nodeType": "TargetGroup",
    47            "data": {
    48                "key": "tg3",
    49                "label": "TargetGroup",
    50                "selector": "staging:west",
    51                "artifactName": "store",
    52                "artifactVersion": "0.21"
    53            }
    54        },
    55        {
    56            "nodeType": "TargetGroup",
    57            "data": {
    58                "key": "tg4",
    59                "label": "TargetGroup",
    60                "selector": "prod:us",
    61                "artifactName": "store",
    62                "artifactVersion": "0.21"
    63            }
    64        }
    65    ],
    66    "edges": [
    67        {
    68            "From": "tg1",
    69            "To": "g1"
    70        },
    71        {
    72            "From": "g1",
    73            "To": "tg2"
    74        },
    75        {
    76            "From": "g1",
    77            "To": "tg3"
    78        },
    79        {
    80            "From": "tg2",
    81            "To": "ag1"
    82        },
    83        {
    84            "From": "tg3",
    85            "To": "ag1"
    86        },
    87        {
    88            "From": "ag1",
    89            "To": "tg4"
    90        }
    91    ]
    92}

View as plain text