mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-09 20:17:41 +00:00
Update compatibility data test
This commit is contained in:
parent
ec997d5433
commit
ffeec1f4d4
163
staging/src/k8s.io/api/testdata/v1.26.0/extensions.v1beta1.NetworkPolicy.after_roundtrip.json
vendored
Normal file
163
staging/src/k8s.io/api/testdata/v1.26.0/extensions.v1beta1.NetworkPolicy.after_roundtrip.json
vendored
Normal file
@ -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"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
BIN
staging/src/k8s.io/api/testdata/v1.26.0/extensions.v1beta1.NetworkPolicy.after_roundtrip.pb
vendored
Normal file
BIN
staging/src/k8s.io/api/testdata/v1.26.0/extensions.v1beta1.NetworkPolicy.after_roundtrip.pb
vendored
Normal file
Binary file not shown.
97
staging/src/k8s.io/api/testdata/v1.26.0/extensions.v1beta1.NetworkPolicy.after_roundtrip.yaml
vendored
Normal file
97
staging/src/k8s.io/api/testdata/v1.26.0/extensions.v1beta1.NetworkPolicy.after_roundtrip.yaml
vendored
Normal file
@ -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
|
163
staging/src/k8s.io/api/testdata/v1.26.0/networking.k8s.io.v1.NetworkPolicy.after_roundtrip.json
vendored
Normal file
163
staging/src/k8s.io/api/testdata/v1.26.0/networking.k8s.io.v1.NetworkPolicy.after_roundtrip.json
vendored
Normal file
@ -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"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
BIN
staging/src/k8s.io/api/testdata/v1.26.0/networking.k8s.io.v1.NetworkPolicy.after_roundtrip.pb
vendored
Normal file
BIN
staging/src/k8s.io/api/testdata/v1.26.0/networking.k8s.io.v1.NetworkPolicy.after_roundtrip.pb
vendored
Normal file
Binary file not shown.
97
staging/src/k8s.io/api/testdata/v1.26.0/networking.k8s.io.v1.NetworkPolicy.after_roundtrip.yaml
vendored
Normal file
97
staging/src/k8s.io/api/testdata/v1.26.0/networking.k8s.io.v1.NetworkPolicy.after_roundtrip.yaml
vendored
Normal file
@ -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
|
163
staging/src/k8s.io/api/testdata/v1.27.0/extensions.v1beta1.NetworkPolicy.after_roundtrip.json
vendored
Normal file
163
staging/src/k8s.io/api/testdata/v1.27.0/extensions.v1beta1.NetworkPolicy.after_roundtrip.json
vendored
Normal file
@ -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"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
BIN
staging/src/k8s.io/api/testdata/v1.27.0/extensions.v1beta1.NetworkPolicy.after_roundtrip.pb
vendored
Normal file
BIN
staging/src/k8s.io/api/testdata/v1.27.0/extensions.v1beta1.NetworkPolicy.after_roundtrip.pb
vendored
Normal file
Binary file not shown.
97
staging/src/k8s.io/api/testdata/v1.27.0/extensions.v1beta1.NetworkPolicy.after_roundtrip.yaml
vendored
Normal file
97
staging/src/k8s.io/api/testdata/v1.27.0/extensions.v1beta1.NetworkPolicy.after_roundtrip.yaml
vendored
Normal file
@ -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
|
163
staging/src/k8s.io/api/testdata/v1.27.0/networking.k8s.io.v1.NetworkPolicy.after_roundtrip.json
vendored
Normal file
163
staging/src/k8s.io/api/testdata/v1.27.0/networking.k8s.io.v1.NetworkPolicy.after_roundtrip.json
vendored
Normal file
@ -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"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
BIN
staging/src/k8s.io/api/testdata/v1.27.0/networking.k8s.io.v1.NetworkPolicy.after_roundtrip.pb
vendored
Normal file
BIN
staging/src/k8s.io/api/testdata/v1.27.0/networking.k8s.io.v1.NetworkPolicy.after_roundtrip.pb
vendored
Normal file
Binary file not shown.
97
staging/src/k8s.io/api/testdata/v1.27.0/networking.k8s.io.v1.NetworkPolicy.after_roundtrip.yaml
vendored
Normal file
97
staging/src/k8s.io/api/testdata/v1.27.0/networking.k8s.io.v1.NetworkPolicy.after_roundtrip.yaml
vendored
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user