...

Text file src/edge-infra.dev/pkg/edge/rollouts/testdata/simple-graph.json

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

     1{
     2    "id": "abc1234-def",
     3    "current": [
     4        "tg1"
     5    ],
     6    "nodes": [
     7        {
     8            "nodeType": "TargetGroup",
     9            "data": {
    10                "state": "pending",
    11                "key": "tg5",
    12                "label": "TargetGroup",
    13                "selector": "prod-global",
    14                "artifactName": "foo",
    15                "artifactVersion": "v2"
    16            }
    17        },
    18        {
    19            "nodeType": "TimerGate",
    20            "data": {
    21                "state": "pending",
    22                "key": "g1",
    23                "label": "TimerGate",
    24                "startTime": "2024-08-30T17:01:29.639722Z",
    25                "delayMinutes": 10
    26            }
    27        },
    28        {
    29            "nodeType": "ApprovalGate",
    30            "data": {
    31                "state": "pending",
    32                "key": "g2",
    33                "label": "ApprovalGate"
    34            }
    35        },
    36        {
    37            "nodeType": "TargetGroup",
    38            "data": {
    39                "state": "pending",
    40                "key": "tg1",
    41                "label": "TargetGroup",
    42                "selector": "dev",
    43                "artifactName": "foo",
    44                "artifactVersion": "v2"
    45            }
    46        },
    47        {
    48            "nodeType": "TargetGroup",
    49            "data": {
    50                "state": "pending",
    51                "key": "tg2",
    52                "label": "TargetGroup",
    53                "selector": "staging-east",
    54                "artifactName": "foo",
    55                "artifactVersion": "v2"
    56            }
    57        },
    58        {
    59            "nodeType": "TargetGroup",
    60            "data": {
    61                "state": "pending",
    62                "key": "tg3",
    63                "label": "TargetGroup",
    64                "selector": "staging-west",
    65                "artifactName": "foo",
    66                "artifactVersion": "v2"
    67            }
    68        },
    69        {
    70            "nodeType": "TargetGroup",
    71            "data": {
    72                "state": "pending",
    73                "key": "tg4",
    74                "label": "TargetGroup",
    75                "selector": "prod-us",
    76                "artifactName": "foo",
    77                "artifactVersion": "v2"
    78            }
    79        }
    80    ],
    81    "edges": [
    82        {
    83            "From": "tg1",
    84            "To": "g1"
    85        },
    86        {
    87            "From": "g1",
    88            "To": "tg2"
    89        },
    90        {
    91            "From": "g1",
    92            "To": "tg3"
    93        },
    94        {
    95            "From": "tg2",
    96            "To": "g2"
    97        },
    98        {
    99            "From": "tg3",
   100            "To": "g2"
   101        },
   102        {
   103            "From": "g2",
   104            "To": "tg4"
   105        },
   106        {
   107            "From": "g2",
   108            "To": "tg5"
   109        }
   110    ]
   111}

View as plain text