github.com/polarismesh/polaris@v1.17.8/test/data/xds/router_rule_data.json (about)

     1  [
     2      {
     3          "id": "12e64aa1cc5540b3ac5c250b4563c79e",
     4          "name": "zabc",
     5          "namespace": "",
     6          "enable": true,
     7          "routing_policy": "RulePolicy",
     8          "routing_config": {
     9              "@type": "type.googleapis.com/v1.RuleRoutingConfig",
    10              "sources": [],
    11              "destinations": [],
    12              "rules": [
    13                  {
    14                      "name": "规则0",
    15                      "sources": [
    16                          {
    17                              "service": "envoy_gateway",
    18                              "namespace": "default",
    19                              "arguments": [
    20                                  {
    21                                      "type": "PATH",
    22                                      "key": "$path",
    23                                      "value": {
    24                                          "type": "EXACT",
    25                                          "value": "/service-a",
    26                                          "value_type": "TEXT"
    27                                      }
    28                                  }
    29                              ]
    30                          }
    31                      ],
    32                      "destinations": [
    33                          {
    34                              "namespace": "default",
    35                              "service": "service-a",
    36                              "labels": {
    37                                  "aa": {
    38                                      "type": "EXACT",
    39                                      "value": "222",
    40                                      "value_type": "TEXT"
    41                                  }
    42                              },
    43                              "priority": 0,
    44                              "weight": 100,
    45                              "transfer": "",
    46                              "isolate": false,
    47                              "name": "group-0"
    48                          }
    49                      ]
    50                  },
    51                  {
    52                      "name": "规则0",
    53                      "sources": [
    54                          {
    55                              "service": "envoy_gateway",
    56                              "namespace": "default",
    57                              "arguments": [
    58                                  {
    59                                      "type": "PATH",
    60                                      "key": "$path",
    61                                      "value": {
    62                                          "type": "EXACT",
    63                                          "value": "/service-b",
    64                                          "value_type": "TEXT"
    65                                      }
    66                                  }
    67                              ]
    68                          }
    69                      ],
    70                      "destinations": [
    71                          {
    72                              "namespace": "default",
    73                              "service": "service-b",
    74                              "labels": {
    75                                  "aa": {
    76                                      "type": "EXACT",
    77                                      "value": "222",
    78                                      "value_type": "TEXT"
    79                                  }
    80                              },
    81                              "priority": 0,
    82                              "weight": 100,
    83                              "transfer": "",
    84                              "isolate": false,
    85                              "name": "group-0"
    86                          }
    87                      ]
    88                  },
    89                  {
    90                      "name": "规则0",
    91                      "sources": [
    92                          {
    93                              "service": "envoy_gateway",
    94                              "namespace": "default_123",
    95                              "arguments": [
    96                                  {
    97                                      "type": "PATH",
    98                                      "key": "$path",
    99                                      "value": {
   100                                          "type": "EXACT",
   101                                          "value": "/service-b",
   102                                          "value_type": "TEXT"
   103                                      }
   104                                  }
   105                              ]
   106                          }
   107                      ],
   108                      "destinations": [
   109                          {
   110                              "namespace": "default",
   111                              "service": "service-b",
   112                              "labels": {
   113                                  "aa": {
   114                                      "type": "EXACT",
   115                                      "value": "222",
   116                                      "value_type": "TEXT"
   117                                  }
   118                              },
   119                              "priority": 0,
   120                              "weight": 100,
   121                              "transfer": "",
   122                              "isolate": false,
   123                              "name": "group-0"
   124                          }
   125                      ]
   126                  }
   127              ]
   128          },
   129          "revision": "v2-34dce6baf5174c6f99bfcde3706403f9",
   130          "priority": 0
   131      }
   132  ]