...

Text file src/k8s.io/api/testdata/v1.29.0/extensions.v1beta1.NetworkPolicy.json

Documentation: k8s.io/api/testdata/v1.29.0

     1{
     2  "kind": "NetworkPolicy",
     3  "apiVersion": "extensions/v1beta1",
     4  "metadata": {
     5    "name": "nameValue",
     6    "generateName": "generateNameValue",
     7    "namespace": "namespaceValue",
     8    "selfLink": "selfLinkValue",
     9    "uid": "uidValue",
    10    "resourceVersion": "resourceVersionValue",
    11    "generation": 7,
    12    "creationTimestamp": "2008-01-01T01:01:01Z",
    13    "deletionTimestamp": "2009-01-01T01:01:01Z",
    14    "deletionGracePeriodSeconds": 10,
    15    "labels": {
    16      "labelsKey": "labelsValue"
    17    },
    18    "annotations": {
    19      "annotationsKey": "annotationsValue"
    20    },
    21    "ownerReferences": [
    22      {
    23        "apiVersion": "apiVersionValue",
    24        "kind": "kindValue",
    25        "name": "nameValue",
    26        "uid": "uidValue",
    27        "controller": true,
    28        "blockOwnerDeletion": true
    29      }
    30    ],
    31    "finalizers": [
    32      "finalizersValue"
    33    ],
    34    "managedFields": [
    35      {
    36        "manager": "managerValue",
    37        "operation": "operationValue",
    38        "apiVersion": "apiVersionValue",
    39        "time": "2004-01-01T01:01:01Z",
    40        "fieldsType": "fieldsTypeValue",
    41        "fieldsV1": {},
    42        "subresource": "subresourceValue"
    43      }
    44    ]
    45  },
    46  "spec": {
    47    "podSelector": {
    48      "matchLabels": {
    49        "matchLabelsKey": "matchLabelsValue"
    50      },
    51      "matchExpressions": [
    52        {
    53          "key": "keyValue",
    54          "operator": "operatorValue",
    55          "values": [
    56            "valuesValue"
    57          ]
    58        }
    59      ]
    60    },
    61    "ingress": [
    62      {
    63        "ports": [
    64          {
    65            "protocol": "protocolValue",
    66            "port": "portValue",
    67            "endPort": 3
    68          }
    69        ],
    70        "from": [
    71          {
    72            "podSelector": {
    73              "matchLabels": {
    74                "matchLabelsKey": "matchLabelsValue"
    75              },
    76              "matchExpressions": [
    77                {
    78                  "key": "keyValue",
    79                  "operator": "operatorValue",
    80                  "values": [
    81                    "valuesValue"
    82                  ]
    83                }
    84              ]
    85            },
    86            "namespaceSelector": {
    87              "matchLabels": {
    88                "matchLabelsKey": "matchLabelsValue"
    89              },
    90              "matchExpressions": [
    91                {
    92                  "key": "keyValue",
    93                  "operator": "operatorValue",
    94                  "values": [
    95                    "valuesValue"
    96                  ]
    97                }
    98              ]
    99            },
   100            "ipBlock": {
   101              "cidr": "cidrValue",
   102              "except": [
   103                "exceptValue"
   104              ]
   105            }
   106          }
   107        ]
   108      }
   109    ],
   110    "egress": [
   111      {
   112        "ports": [
   113          {
   114            "protocol": "protocolValue",
   115            "port": "portValue",
   116            "endPort": 3
   117          }
   118        ],
   119        "to": [
   120          {
   121            "podSelector": {
   122              "matchLabels": {
   123                "matchLabelsKey": "matchLabelsValue"
   124              },
   125              "matchExpressions": [
   126                {
   127                  "key": "keyValue",
   128                  "operator": "operatorValue",
   129                  "values": [
   130                    "valuesValue"
   131                  ]
   132                }
   133              ]
   134            },
   135            "namespaceSelector": {
   136              "matchLabels": {
   137                "matchLabelsKey": "matchLabelsValue"
   138              },
   139              "matchExpressions": [
   140                {
   141                  "key": "keyValue",
   142                  "operator": "operatorValue",
   143                  "values": [
   144                    "valuesValue"
   145                  ]
   146                }
   147              ]
   148            },
   149            "ipBlock": {
   150              "cidr": "cidrValue",
   151              "except": [
   152                "exceptValue"
   153              ]
   154            }
   155          }
   156        ]
   157      }
   158    ],
   159    "policyTypes": [
   160      "policyTypesValue"
   161    ]
   162  }
   163}

View as plain text