mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-03 10:17:46 +00:00
Add unit tests for example syntax
Tests api/examples, examples, and any embedded json in readme.
This commit is contained in:
@@ -9,13 +9,16 @@
|
||||
},
|
||||
"podTemplate": {
|
||||
"desiredState": {
|
||||
"image": "dockerfile/nginx",
|
||||
"networkPorts": [
|
||||
{
|
||||
"hostPort": 8080,
|
||||
"containerPort": 80
|
||||
}
|
||||
]
|
||||
"manifest": {
|
||||
"version": "v1beta1",
|
||||
"image": "dockerfile/nginx",
|
||||
"networkPorts": [
|
||||
{
|
||||
"hostPort": 8080,
|
||||
"containerPort": 80
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"labels": {
|
||||
"name": "testRun"
|
||||
|
@@ -11,12 +11,13 @@
|
||||
"version": "v1beta1",
|
||||
"id": "my-pod-1",
|
||||
"containers": [{
|
||||
"name": "nginx",
|
||||
"image": "dockerfile/nginx",
|
||||
"ports": [{
|
||||
"hostPort": 8080,
|
||||
"containerPort": 80
|
||||
}]
|
||||
}
|
||||
}]
|
||||
}
|
||||
},
|
||||
"currentState": {
|
||||
@@ -34,12 +35,13 @@
|
||||
"version": "v1beta1",
|
||||
"id": "my-pod-2",
|
||||
"containers": [{
|
||||
"name": "nginx",
|
||||
"image": "dockerfile/nginx",
|
||||
"ports": [{
|
||||
"hostPort": 8080,
|
||||
"containerPort": 80
|
||||
}]
|
||||
}
|
||||
}]
|
||||
}
|
||||
},
|
||||
"currentState": {
|
||||
|
@@ -5,7 +5,7 @@
|
||||
"port": 8000,
|
||||
"labels": {
|
||||
"name": "nginx"
|
||||
}
|
||||
},
|
||||
"selector": {
|
||||
"name": "nginx"
|
||||
}
|
||||
@@ -16,7 +16,7 @@
|
||||
"labels": {
|
||||
"env": "prod",
|
||||
"name": "jetty"
|
||||
}
|
||||
},
|
||||
"selector": {
|
||||
"env": "prod",
|
||||
"name": "jetty"
|
||||
|
Reference in New Issue
Block a user