github.com/fafucoder/cilium@v1.6.11/proxylib/testparsers/headerparser.policy (about)

     1  [{
     2      "endpointSelector": {"matchLabels":{"id.echoserver":""}},
     3      "ingress": [{
     4          "fromEndpoints": [
     5              {"matchLabels":{"reserved:host":""}},
     6              {"matchLabels":{"id.client":""}}
     7          ],
     8          "toPorts": [{
     9              "ports": [{"port": "2701", "protocol": "tcp"}],
    10              "rules": {
    11                  "l7proto": "test.headerparser",
    12                  "l7": [{
    13                      "prefix": "foo"
    14                  }]
    15              }
    16          }]
    17      }]
    18  },{
    19      "endpointSelector": {"matchLabels":{"id.echoserver":""}},
    20      "ingress": [{
    21          "fromEndpoints": [
    22              {"matchLabels":{"reserved:host":""}},
    23              {"matchLabels":{"id.client":""}}
    24          ],
    25          "toPorts": [{
    26              "ports": [{"port": "2701", "protocol": "tcp"}],
    27              "rules": {
    28                  "l7proto": "test.headerparser",
    29                  "l7": [
    30  		    {"prefix": "bar", "contains": "beer"},
    31  		    {"suffix": "end"}
    32                  ]
    33              }
    34          }]
    35      }]
    36  }]