Skip to content
31 changes: 31 additions & 0 deletions kubernetes/e2e_test/test_json/apiservice-fail.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"apiVersion": "apiregistration.k8s.io/v1",
"kind": "APIService",
"metadata": {
"creationTimestamp": "2019-09-30T03:42:56Z",
"labels": {
"kube-aggregator.kubernetes.io/automanaged": "onstart"
},
"name": "v1.",
"resourceVersion": "4",
"selfLink": "/apis/apiregistration.k8s.io/v1/apiservices/v1.",
"uid": "ed59c555-e1bb-44e2-af20-1bf51117a4b3"
},
"spec": {
"groupPriorityMinimum": 18000,
"service": null,
"version": "v1",
"versionPriority": 1
},
"status": {
"conditions": [
{
"lastTransitionTime": "2019-09-30T03:42:56Z",
"message": "Local APIServices are always available",
"reason": "Local",
"status": "True",
"type": "Available"
}
]
}
}
31 changes: 31 additions & 0 deletions kubernetes/e2e_test/test_json/apiservice.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"apiVersion": "apiregistration.k8s.io/v1",
"kind": "APIService",
"metadata": {
"creationTimestamp": "2019-09-30T03:42:56Z",
"labels": {
"kube-aggregator.kubernetes.io/automanaged": "onstart"
},
"name": "v1.",
"resourceVersion": "4",
"selfLink": "/apis/apiregistration.k8s.io/v1/apiservices/v1.",
"uid": "ed59c555-e1bb-44e2-af20-1bf51117a4b3"
},
"spec": {
"groupPriorityMinimum": 18000,
"service": "DummyNotNull",
"version": "v1",
"versionPriority": 1
},
"status": {
"conditions": [
{
"lastTransitionTime": "2019-09-30T03:42:56Z",
"message": "Local APIServices are always available",
"reason": "Local",
"status": "True",
"type": "Available"
}
]
}
}
5 changes: 5 additions & 0 deletions kubernetes/e2e_test/test_json/bad-data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"apiVersion": "v1bad",
"kind": "Pod",
"TestInfo": 12345
}
88 changes: 88 additions & 0 deletions kubernetes/e2e_test/test_json/deployment.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
{
"apiVersion": "apps/v1",
"kind": "Deployment",
"metadata": {
"annotations": {
"deployment.kubernetes.io/revision": "1"
},
"creationTimestamp": "2019-10-01T04:51:46Z",
"generation": 1,
"labels": {
"run": "curl3"
},
"name": "curl3",
"namespace": "default",
"resourceVersion": "469654",
"selfLink": "/apis/apps/v1/namespaces/default/deployments/curl3",
"uid": "6e9bb86b-4e2a-4567-9519-393a3d7245da"
},
"spec": {
"progressDeadlineSeconds": 600,
"replicas": 1,
"revisionHistoryLimit": 10,
"selector": {
"matchLabels": {
"run": "curl3"
}
},
"strategy": {
"rollingUpdate": {
"maxSurge": "25%",
"maxUnavailable": "25%"
},
"type": "RollingUpdate"
},
"template": {
"metadata": {
"creationTimestamp": null,
"labels": {
"run": "curl3"
}
},
"spec": {
"containers": [
{
"image": "radial/busyboxplus:curl",
"imagePullPolicy": "IfNotPresent",
"name": "curl3",
"resources": {},
"stdin": true,
"terminationMessagePath": "/dev/termination-log",
"terminationMessagePolicy": "File",
"tty": true
}
],
"dnsPolicy": "ClusterFirst",
"restartPolicy": "Always",
"schedulerName": "default-scheduler",
"securityContext": {},
"terminationGracePeriodSeconds": 30
}
}
},
"status": {
"availableReplicas": 1,
"conditions": [
{
"lastTransitionTime": "2019-10-01T04:51:46Z",
"lastUpdateTime": "2019-10-01T04:51:47Z",
"message": "ReplicaSet \"curl3-748c7587cf\" has successfully progressed.",
"reason": "NewReplicaSetAvailable",
"status": "True",
"type": "Progressing"
},
{
"lastTransitionTime": "2019-10-14T21:08:27Z",
"lastUpdateTime": "2019-10-14T21:08:27Z",
"message": "Deployment has minimum availability.",
"reason": "MinimumReplicasAvailable",
"status": "True",
"type": "Available"
}
],
"observedGeneration": 1,
"readyReplicas": 1,
"replicas": 1,
"updatedReplicas": 1
}
}
19 changes: 19 additions & 0 deletions kubernetes/e2e_test/test_json/namespace.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"apiVersion": "v1",
"kind": "Namespace",
"metadata": {
"creationTimestamp": "2019-09-30T03:43:00Z",
"name": "default",
"resourceVersion": "148",
"selfLink": "/api/v1/namespaces/default",
"uid": "96dcb214-c21d-4858-a7d4-b90d09cf9174"
},
"spec": {
"finalizers": [
"kubernetes"
]
},
"status": {
"phase": "Active"
}
}
Loading