diff --git a/staging/src/k8s.io/api/testdata/v1.26.0/extensions.v1beta1.NetworkPolicy.after_roundtrip.json b/staging/src/k8s.io/api/testdata/v1.26.0/extensions.v1beta1.NetworkPolicy.after_roundtrip.json new file mode 100644 index 00000000000..41d542a9bbd --- /dev/null +++ b/staging/src/k8s.io/api/testdata/v1.26.0/extensions.v1beta1.NetworkPolicy.after_roundtrip.json @@ -0,0 +1,163 @@ +{ + "kind": "NetworkPolicy", + "apiVersion": "extensions/v1beta1", + "metadata": { + "name": "nameValue", + "generateName": "generateNameValue", + "namespace": "namespaceValue", + "selfLink": "selfLinkValue", + "uid": "uidValue", + "resourceVersion": "resourceVersionValue", + "generation": 7, + "creationTimestamp": "2008-01-01T01:01:01Z", + "deletionTimestamp": "2009-01-01T01:01:01Z", + "deletionGracePeriodSeconds": 10, + "labels": { + "labelsKey": "labelsValue" + }, + "annotations": { + "annotationsKey": "annotationsValue" + }, + "ownerReferences": [ + { + "apiVersion": "apiVersionValue", + "kind": "kindValue", + "name": "nameValue", + "uid": "uidValue", + "controller": true, + "blockOwnerDeletion": true + } + ], + "finalizers": [ + "finalizersValue" + ], + "managedFields": [ + { + "manager": "managerValue", + "operation": "operationValue", + "apiVersion": "apiVersionValue", + "time": "2004-01-01T01:01:01Z", + "fieldsType": "fieldsTypeValue", + "fieldsV1": {}, + "subresource": "subresourceValue" + } + ] + }, + "spec": { + "podSelector": { + "matchLabels": { + "matchLabelsKey": "matchLabelsValue" + }, + "matchExpressions": [ + { + "key": "keyValue", + "operator": "operatorValue", + "values": [ + "valuesValue" + ] + } + ] + }, + "ingress": [ + { + "ports": [ + { + "protocol": "protocolValue", + "port": "portValue", + "endPort": 3 + } + ], + "from": [ + { + "podSelector": { + "matchLabels": { + "matchLabelsKey": "matchLabelsValue" + }, + "matchExpressions": [ + { + "key": "keyValue", + "operator": "operatorValue", + "values": [ + "valuesValue" + ] + } + ] + }, + "namespaceSelector": { + "matchLabels": { + "matchLabelsKey": "matchLabelsValue" + }, + "matchExpressions": [ + { + "key": "keyValue", + "operator": "operatorValue", + "values": [ + "valuesValue" + ] + } + ] + }, + "ipBlock": { + "cidr": "cidrValue", + "except": [ + "exceptValue" + ] + } + } + ] + } + ], + "egress": [ + { + "ports": [ + { + "protocol": "protocolValue", + "port": "portValue", + "endPort": 3 + } + ], + "to": [ + { + "podSelector": { + "matchLabels": { + "matchLabelsKey": "matchLabelsValue" + }, + "matchExpressions": [ + { + "key": "keyValue", + "operator": "operatorValue", + "values": [ + "valuesValue" + ] + } + ] + }, + "namespaceSelector": { + "matchLabels": { + "matchLabelsKey": "matchLabelsValue" + }, + "matchExpressions": [ + { + "key": "keyValue", + "operator": "operatorValue", + "values": [ + "valuesValue" + ] + } + ] + }, + "ipBlock": { + "cidr": "cidrValue", + "except": [ + "exceptValue" + ] + } + } + ] + } + ], + "policyTypes": [ + "policyTypesValue" + ] + } +} \ No newline at end of file diff --git a/staging/src/k8s.io/api/testdata/v1.26.0/extensions.v1beta1.NetworkPolicy.after_roundtrip.pb b/staging/src/k8s.io/api/testdata/v1.26.0/extensions.v1beta1.NetworkPolicy.after_roundtrip.pb new file mode 100644 index 00000000000..4c7ce5ac9cb Binary files /dev/null and b/staging/src/k8s.io/api/testdata/v1.26.0/extensions.v1beta1.NetworkPolicy.after_roundtrip.pb differ diff --git a/staging/src/k8s.io/api/testdata/v1.26.0/extensions.v1beta1.NetworkPolicy.after_roundtrip.yaml b/staging/src/k8s.io/api/testdata/v1.26.0/extensions.v1beta1.NetworkPolicy.after_roundtrip.yaml new file mode 100644 index 00000000000..176cbe3313c --- /dev/null +++ b/staging/src/k8s.io/api/testdata/v1.26.0/extensions.v1beta1.NetworkPolicy.after_roundtrip.yaml @@ -0,0 +1,97 @@ +apiVersion: extensions/v1beta1 +kind: NetworkPolicy +metadata: + annotations: + annotationsKey: annotationsValue + creationTimestamp: "2008-01-01T01:01:01Z" + deletionGracePeriodSeconds: 10 + deletionTimestamp: "2009-01-01T01:01:01Z" + finalizers: + - finalizersValue + generateName: generateNameValue + generation: 7 + labels: + labelsKey: labelsValue + managedFields: + - apiVersion: apiVersionValue + fieldsType: fieldsTypeValue + fieldsV1: {} + manager: managerValue + operation: operationValue + subresource: subresourceValue + time: "2004-01-01T01:01:01Z" + name: nameValue + namespace: namespaceValue + ownerReferences: + - apiVersion: apiVersionValue + blockOwnerDeletion: true + controller: true + kind: kindValue + name: nameValue + uid: uidValue + resourceVersion: resourceVersionValue + selfLink: selfLinkValue + uid: uidValue +spec: + egress: + - ports: + - endPort: 3 + port: portValue + protocol: protocolValue + to: + - ipBlock: + cidr: cidrValue + except: + - exceptValue + namespaceSelector: + matchExpressions: + - key: keyValue + operator: operatorValue + values: + - valuesValue + matchLabels: + matchLabelsKey: matchLabelsValue + podSelector: + matchExpressions: + - key: keyValue + operator: operatorValue + values: + - valuesValue + matchLabels: + matchLabelsKey: matchLabelsValue + ingress: + - from: + - ipBlock: + cidr: cidrValue + except: + - exceptValue + namespaceSelector: + matchExpressions: + - key: keyValue + operator: operatorValue + values: + - valuesValue + matchLabels: + matchLabelsKey: matchLabelsValue + podSelector: + matchExpressions: + - key: keyValue + operator: operatorValue + values: + - valuesValue + matchLabels: + matchLabelsKey: matchLabelsValue + ports: + - endPort: 3 + port: portValue + protocol: protocolValue + podSelector: + matchExpressions: + - key: keyValue + operator: operatorValue + values: + - valuesValue + matchLabels: + matchLabelsKey: matchLabelsValue + policyTypes: + - policyTypesValue diff --git a/staging/src/k8s.io/api/testdata/v1.26.0/networking.k8s.io.v1.NetworkPolicy.after_roundtrip.json b/staging/src/k8s.io/api/testdata/v1.26.0/networking.k8s.io.v1.NetworkPolicy.after_roundtrip.json new file mode 100644 index 00000000000..e61daad40ed --- /dev/null +++ b/staging/src/k8s.io/api/testdata/v1.26.0/networking.k8s.io.v1.NetworkPolicy.after_roundtrip.json @@ -0,0 +1,163 @@ +{ + "kind": "NetworkPolicy", + "apiVersion": "networking.k8s.io/v1", + "metadata": { + "name": "nameValue", + "generateName": "generateNameValue", + "namespace": "namespaceValue", + "selfLink": "selfLinkValue", + "uid": "uidValue", + "resourceVersion": "resourceVersionValue", + "generation": 7, + "creationTimestamp": "2008-01-01T01:01:01Z", + "deletionTimestamp": "2009-01-01T01:01:01Z", + "deletionGracePeriodSeconds": 10, + "labels": { + "labelsKey": "labelsValue" + }, + "annotations": { + "annotationsKey": "annotationsValue" + }, + "ownerReferences": [ + { + "apiVersion": "apiVersionValue", + "kind": "kindValue", + "name": "nameValue", + "uid": "uidValue", + "controller": true, + "blockOwnerDeletion": true + } + ], + "finalizers": [ + "finalizersValue" + ], + "managedFields": [ + { + "manager": "managerValue", + "operation": "operationValue", + "apiVersion": "apiVersionValue", + "time": "2004-01-01T01:01:01Z", + "fieldsType": "fieldsTypeValue", + "fieldsV1": {}, + "subresource": "subresourceValue" + } + ] + }, + "spec": { + "podSelector": { + "matchLabels": { + "matchLabelsKey": "matchLabelsValue" + }, + "matchExpressions": [ + { + "key": "keyValue", + "operator": "operatorValue", + "values": [ + "valuesValue" + ] + } + ] + }, + "ingress": [ + { + "ports": [ + { + "protocol": "protocolValue", + "port": "portValue", + "endPort": 3 + } + ], + "from": [ + { + "podSelector": { + "matchLabels": { + "matchLabelsKey": "matchLabelsValue" + }, + "matchExpressions": [ + { + "key": "keyValue", + "operator": "operatorValue", + "values": [ + "valuesValue" + ] + } + ] + }, + "namespaceSelector": { + "matchLabels": { + "matchLabelsKey": "matchLabelsValue" + }, + "matchExpressions": [ + { + "key": "keyValue", + "operator": "operatorValue", + "values": [ + "valuesValue" + ] + } + ] + }, + "ipBlock": { + "cidr": "cidrValue", + "except": [ + "exceptValue" + ] + } + } + ] + } + ], + "egress": [ + { + "ports": [ + { + "protocol": "protocolValue", + "port": "portValue", + "endPort": 3 + } + ], + "to": [ + { + "podSelector": { + "matchLabels": { + "matchLabelsKey": "matchLabelsValue" + }, + "matchExpressions": [ + { + "key": "keyValue", + "operator": "operatorValue", + "values": [ + "valuesValue" + ] + } + ] + }, + "namespaceSelector": { + "matchLabels": { + "matchLabelsKey": "matchLabelsValue" + }, + "matchExpressions": [ + { + "key": "keyValue", + "operator": "operatorValue", + "values": [ + "valuesValue" + ] + } + ] + }, + "ipBlock": { + "cidr": "cidrValue", + "except": [ + "exceptValue" + ] + } + } + ] + } + ], + "policyTypes": [ + "policyTypesValue" + ] + } +} \ No newline at end of file diff --git a/staging/src/k8s.io/api/testdata/v1.26.0/networking.k8s.io.v1.NetworkPolicy.after_roundtrip.pb b/staging/src/k8s.io/api/testdata/v1.26.0/networking.k8s.io.v1.NetworkPolicy.after_roundtrip.pb new file mode 100644 index 00000000000..90efd44a049 Binary files /dev/null and b/staging/src/k8s.io/api/testdata/v1.26.0/networking.k8s.io.v1.NetworkPolicy.after_roundtrip.pb differ diff --git a/staging/src/k8s.io/api/testdata/v1.26.0/networking.k8s.io.v1.NetworkPolicy.after_roundtrip.yaml b/staging/src/k8s.io/api/testdata/v1.26.0/networking.k8s.io.v1.NetworkPolicy.after_roundtrip.yaml new file mode 100644 index 00000000000..09bf9090473 --- /dev/null +++ b/staging/src/k8s.io/api/testdata/v1.26.0/networking.k8s.io.v1.NetworkPolicy.after_roundtrip.yaml @@ -0,0 +1,97 @@ +apiVersion: networking.k8s.io/v1 +kind: NetworkPolicy +metadata: + annotations: + annotationsKey: annotationsValue + creationTimestamp: "2008-01-01T01:01:01Z" + deletionGracePeriodSeconds: 10 + deletionTimestamp: "2009-01-01T01:01:01Z" + finalizers: + - finalizersValue + generateName: generateNameValue + generation: 7 + labels: + labelsKey: labelsValue + managedFields: + - apiVersion: apiVersionValue + fieldsType: fieldsTypeValue + fieldsV1: {} + manager: managerValue + operation: operationValue + subresource: subresourceValue + time: "2004-01-01T01:01:01Z" + name: nameValue + namespace: namespaceValue + ownerReferences: + - apiVersion: apiVersionValue + blockOwnerDeletion: true + controller: true + kind: kindValue + name: nameValue + uid: uidValue + resourceVersion: resourceVersionValue + selfLink: selfLinkValue + uid: uidValue +spec: + egress: + - ports: + - endPort: 3 + port: portValue + protocol: protocolValue + to: + - ipBlock: + cidr: cidrValue + except: + - exceptValue + namespaceSelector: + matchExpressions: + - key: keyValue + operator: operatorValue + values: + - valuesValue + matchLabels: + matchLabelsKey: matchLabelsValue + podSelector: + matchExpressions: + - key: keyValue + operator: operatorValue + values: + - valuesValue + matchLabels: + matchLabelsKey: matchLabelsValue + ingress: + - from: + - ipBlock: + cidr: cidrValue + except: + - exceptValue + namespaceSelector: + matchExpressions: + - key: keyValue + operator: operatorValue + values: + - valuesValue + matchLabels: + matchLabelsKey: matchLabelsValue + podSelector: + matchExpressions: + - key: keyValue + operator: operatorValue + values: + - valuesValue + matchLabels: + matchLabelsKey: matchLabelsValue + ports: + - endPort: 3 + port: portValue + protocol: protocolValue + podSelector: + matchExpressions: + - key: keyValue + operator: operatorValue + values: + - valuesValue + matchLabels: + matchLabelsKey: matchLabelsValue + policyTypes: + - policyTypesValue diff --git a/staging/src/k8s.io/api/testdata/v1.27.0/extensions.v1beta1.NetworkPolicy.after_roundtrip.json b/staging/src/k8s.io/api/testdata/v1.27.0/extensions.v1beta1.NetworkPolicy.after_roundtrip.json new file mode 100644 index 00000000000..41d542a9bbd --- /dev/null +++ b/staging/src/k8s.io/api/testdata/v1.27.0/extensions.v1beta1.NetworkPolicy.after_roundtrip.json @@ -0,0 +1,163 @@ +{ + "kind": "NetworkPolicy", + "apiVersion": "extensions/v1beta1", + "metadata": { + "name": "nameValue", + "generateName": "generateNameValue", + "namespace": "namespaceValue", + "selfLink": "selfLinkValue", + "uid": "uidValue", + "resourceVersion": "resourceVersionValue", + "generation": 7, + "creationTimestamp": "2008-01-01T01:01:01Z", + "deletionTimestamp": "2009-01-01T01:01:01Z", + "deletionGracePeriodSeconds": 10, + "labels": { + "labelsKey": "labelsValue" + }, + "annotations": { + "annotationsKey": "annotationsValue" + }, + "ownerReferences": [ + { + "apiVersion": "apiVersionValue", + "kind": "kindValue", + "name": "nameValue", + "uid": "uidValue", + "controller": true, + "blockOwnerDeletion": true + } + ], + "finalizers": [ + "finalizersValue" + ], + "managedFields": [ + { + "manager": "managerValue", + "operation": "operationValue", + "apiVersion": "apiVersionValue", + "time": "2004-01-01T01:01:01Z", + "fieldsType": "fieldsTypeValue", + "fieldsV1": {}, + "subresource": "subresourceValue" + } + ] + }, + "spec": { + "podSelector": { + "matchLabels": { + "matchLabelsKey": "matchLabelsValue" + }, + "matchExpressions": [ + { + "key": "keyValue", + "operator": "operatorValue", + "values": [ + "valuesValue" + ] + } + ] + }, + "ingress": [ + { + "ports": [ + { + "protocol": "protocolValue", + "port": "portValue", + "endPort": 3 + } + ], + "from": [ + { + "podSelector": { + "matchLabels": { + "matchLabelsKey": "matchLabelsValue" + }, + "matchExpressions": [ + { + "key": "keyValue", + "operator": "operatorValue", + "values": [ + "valuesValue" + ] + } + ] + }, + "namespaceSelector": { + "matchLabels": { + "matchLabelsKey": "matchLabelsValue" + }, + "matchExpressions": [ + { + "key": "keyValue", + "operator": "operatorValue", + "values": [ + "valuesValue" + ] + } + ] + }, + "ipBlock": { + "cidr": "cidrValue", + "except": [ + "exceptValue" + ] + } + } + ] + } + ], + "egress": [ + { + "ports": [ + { + "protocol": "protocolValue", + "port": "portValue", + "endPort": 3 + } + ], + "to": [ + { + "podSelector": { + "matchLabels": { + "matchLabelsKey": "matchLabelsValue" + }, + "matchExpressions": [ + { + "key": "keyValue", + "operator": "operatorValue", + "values": [ + "valuesValue" + ] + } + ] + }, + "namespaceSelector": { + "matchLabels": { + "matchLabelsKey": "matchLabelsValue" + }, + "matchExpressions": [ + { + "key": "keyValue", + "operator": "operatorValue", + "values": [ + "valuesValue" + ] + } + ] + }, + "ipBlock": { + "cidr": "cidrValue", + "except": [ + "exceptValue" + ] + } + } + ] + } + ], + "policyTypes": [ + "policyTypesValue" + ] + } +} \ No newline at end of file diff --git a/staging/src/k8s.io/api/testdata/v1.27.0/extensions.v1beta1.NetworkPolicy.after_roundtrip.pb b/staging/src/k8s.io/api/testdata/v1.27.0/extensions.v1beta1.NetworkPolicy.after_roundtrip.pb new file mode 100644 index 00000000000..4c7ce5ac9cb Binary files /dev/null and b/staging/src/k8s.io/api/testdata/v1.27.0/extensions.v1beta1.NetworkPolicy.after_roundtrip.pb differ diff --git a/staging/src/k8s.io/api/testdata/v1.27.0/extensions.v1beta1.NetworkPolicy.after_roundtrip.yaml b/staging/src/k8s.io/api/testdata/v1.27.0/extensions.v1beta1.NetworkPolicy.after_roundtrip.yaml new file mode 100644 index 00000000000..176cbe3313c --- /dev/null +++ b/staging/src/k8s.io/api/testdata/v1.27.0/extensions.v1beta1.NetworkPolicy.after_roundtrip.yaml @@ -0,0 +1,97 @@ +apiVersion: extensions/v1beta1 +kind: NetworkPolicy +metadata: + annotations: + annotationsKey: annotationsValue + creationTimestamp: "2008-01-01T01:01:01Z" + deletionGracePeriodSeconds: 10 + deletionTimestamp: "2009-01-01T01:01:01Z" + finalizers: + - finalizersValue + generateName: generateNameValue + generation: 7 + labels: + labelsKey: labelsValue + managedFields: + - apiVersion: apiVersionValue + fieldsType: fieldsTypeValue + fieldsV1: {} + manager: managerValue + operation: operationValue + subresource: subresourceValue + time: "2004-01-01T01:01:01Z" + name: nameValue + namespace: namespaceValue + ownerReferences: + - apiVersion: apiVersionValue + blockOwnerDeletion: true + controller: true + kind: kindValue + name: nameValue + uid: uidValue + resourceVersion: resourceVersionValue + selfLink: selfLinkValue + uid: uidValue +spec: + egress: + - ports: + - endPort: 3 + port: portValue + protocol: protocolValue + to: + - ipBlock: + cidr: cidrValue + except: + - exceptValue + namespaceSelector: + matchExpressions: + - key: keyValue + operator: operatorValue + values: + - valuesValue + matchLabels: + matchLabelsKey: matchLabelsValue + podSelector: + matchExpressions: + - key: keyValue + operator: operatorValue + values: + - valuesValue + matchLabels: + matchLabelsKey: matchLabelsValue + ingress: + - from: + - ipBlock: + cidr: cidrValue + except: + - exceptValue + namespaceSelector: + matchExpressions: + - key: keyValue + operator: operatorValue + values: + - valuesValue + matchLabels: + matchLabelsKey: matchLabelsValue + podSelector: + matchExpressions: + - key: keyValue + operator: operatorValue + values: + - valuesValue + matchLabels: + matchLabelsKey: matchLabelsValue + ports: + - endPort: 3 + port: portValue + protocol: protocolValue + podSelector: + matchExpressions: + - key: keyValue + operator: operatorValue + values: + - valuesValue + matchLabels: + matchLabelsKey: matchLabelsValue + policyTypes: + - policyTypesValue diff --git a/staging/src/k8s.io/api/testdata/v1.27.0/networking.k8s.io.v1.NetworkPolicy.after_roundtrip.json b/staging/src/k8s.io/api/testdata/v1.27.0/networking.k8s.io.v1.NetworkPolicy.after_roundtrip.json new file mode 100644 index 00000000000..e61daad40ed --- /dev/null +++ b/staging/src/k8s.io/api/testdata/v1.27.0/networking.k8s.io.v1.NetworkPolicy.after_roundtrip.json @@ -0,0 +1,163 @@ +{ + "kind": "NetworkPolicy", + "apiVersion": "networking.k8s.io/v1", + "metadata": { + "name": "nameValue", + "generateName": "generateNameValue", + "namespace": "namespaceValue", + "selfLink": "selfLinkValue", + "uid": "uidValue", + "resourceVersion": "resourceVersionValue", + "generation": 7, + "creationTimestamp": "2008-01-01T01:01:01Z", + "deletionTimestamp": "2009-01-01T01:01:01Z", + "deletionGracePeriodSeconds": 10, + "labels": { + "labelsKey": "labelsValue" + }, + "annotations": { + "annotationsKey": "annotationsValue" + }, + "ownerReferences": [ + { + "apiVersion": "apiVersionValue", + "kind": "kindValue", + "name": "nameValue", + "uid": "uidValue", + "controller": true, + "blockOwnerDeletion": true + } + ], + "finalizers": [ + "finalizersValue" + ], + "managedFields": [ + { + "manager": "managerValue", + "operation": "operationValue", + "apiVersion": "apiVersionValue", + "time": "2004-01-01T01:01:01Z", + "fieldsType": "fieldsTypeValue", + "fieldsV1": {}, + "subresource": "subresourceValue" + } + ] + }, + "spec": { + "podSelector": { + "matchLabels": { + "matchLabelsKey": "matchLabelsValue" + }, + "matchExpressions": [ + { + "key": "keyValue", + "operator": "operatorValue", + "values": [ + "valuesValue" + ] + } + ] + }, + "ingress": [ + { + "ports": [ + { + "protocol": "protocolValue", + "port": "portValue", + "endPort": 3 + } + ], + "from": [ + { + "podSelector": { + "matchLabels": { + "matchLabelsKey": "matchLabelsValue" + }, + "matchExpressions": [ + { + "key": "keyValue", + "operator": "operatorValue", + "values": [ + "valuesValue" + ] + } + ] + }, + "namespaceSelector": { + "matchLabels": { + "matchLabelsKey": "matchLabelsValue" + }, + "matchExpressions": [ + { + "key": "keyValue", + "operator": "operatorValue", + "values": [ + "valuesValue" + ] + } + ] + }, + "ipBlock": { + "cidr": "cidrValue", + "except": [ + "exceptValue" + ] + } + } + ] + } + ], + "egress": [ + { + "ports": [ + { + "protocol": "protocolValue", + "port": "portValue", + "endPort": 3 + } + ], + "to": [ + { + "podSelector": { + "matchLabels": { + "matchLabelsKey": "matchLabelsValue" + }, + "matchExpressions": [ + { + "key": "keyValue", + "operator": "operatorValue", + "values": [ + "valuesValue" + ] + } + ] + }, + "namespaceSelector": { + "matchLabels": { + "matchLabelsKey": "matchLabelsValue" + }, + "matchExpressions": [ + { + "key": "keyValue", + "operator": "operatorValue", + "values": [ + "valuesValue" + ] + } + ] + }, + "ipBlock": { + "cidr": "cidrValue", + "except": [ + "exceptValue" + ] + } + } + ] + } + ], + "policyTypes": [ + "policyTypesValue" + ] + } +} \ No newline at end of file diff --git a/staging/src/k8s.io/api/testdata/v1.27.0/networking.k8s.io.v1.NetworkPolicy.after_roundtrip.pb b/staging/src/k8s.io/api/testdata/v1.27.0/networking.k8s.io.v1.NetworkPolicy.after_roundtrip.pb new file mode 100644 index 00000000000..90efd44a049 Binary files /dev/null and b/staging/src/k8s.io/api/testdata/v1.27.0/networking.k8s.io.v1.NetworkPolicy.after_roundtrip.pb differ diff --git a/staging/src/k8s.io/api/testdata/v1.27.0/networking.k8s.io.v1.NetworkPolicy.after_roundtrip.yaml b/staging/src/k8s.io/api/testdata/v1.27.0/networking.k8s.io.v1.NetworkPolicy.after_roundtrip.yaml new file mode 100644 index 00000000000..09bf9090473 --- /dev/null +++ b/staging/src/k8s.io/api/testdata/v1.27.0/networking.k8s.io.v1.NetworkPolicy.after_roundtrip.yaml @@ -0,0 +1,97 @@ +apiVersion: networking.k8s.io/v1 +kind: NetworkPolicy +metadata: + annotations: + annotationsKey: annotationsValue + creationTimestamp: "2008-01-01T01:01:01Z" + deletionGracePeriodSeconds: 10 + deletionTimestamp: "2009-01-01T01:01:01Z" + finalizers: + - finalizersValue + generateName: generateNameValue + generation: 7 + labels: + labelsKey: labelsValue + managedFields: + - apiVersion: apiVersionValue + fieldsType: fieldsTypeValue + fieldsV1: {} + manager: managerValue + operation: operationValue + subresource: subresourceValue + time: "2004-01-01T01:01:01Z" + name: nameValue + namespace: namespaceValue + ownerReferences: + - apiVersion: apiVersionValue + blockOwnerDeletion: true + controller: true + kind: kindValue + name: nameValue + uid: uidValue + resourceVersion: resourceVersionValue + selfLink: selfLinkValue + uid: uidValue +spec: + egress: + - ports: + - endPort: 3 + port: portValue + protocol: protocolValue + to: + - ipBlock: + cidr: cidrValue + except: + - exceptValue + namespaceSelector: + matchExpressions: + - key: keyValue + operator: operatorValue + values: + - valuesValue + matchLabels: + matchLabelsKey: matchLabelsValue + podSelector: + matchExpressions: + - key: keyValue + operator: operatorValue + values: + - valuesValue + matchLabels: + matchLabelsKey: matchLabelsValue + ingress: + - from: + - ipBlock: + cidr: cidrValue + except: + - exceptValue + namespaceSelector: + matchExpressions: + - key: keyValue + operator: operatorValue + values: + - valuesValue + matchLabels: + matchLabelsKey: matchLabelsValue + podSelector: + matchExpressions: + - key: keyValue + operator: operatorValue + values: + - valuesValue + matchLabels: + matchLabelsKey: matchLabelsValue + ports: + - endPort: 3 + port: portValue + protocol: protocolValue + podSelector: + matchExpressions: + - key: keyValue + operator: operatorValue + values: + - valuesValue + matchLabels: + matchLabelsKey: matchLabelsValue + policyTypes: + - policyTypesValue