Skip to content

Commit

Permalink
Add kind and apiVersion to guestbook example.
Browse files Browse the repository at this point in the history
  • Loading branch information
brendandburns committed Jul 25, 2014
1 parent bf5ae4b commit 3723eb7
Show file tree
Hide file tree
Showing 14 changed files with 28 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ Where pod.json contains something like:
```
{
"id": "php",
"kind": "Pod",
"apiVersion": "v1beta1",
"desiredState": {
"manifest": {
"version": "v1beta1",
Expand Down
4 changes: 3 additions & 1 deletion api/examples/controller-list.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"kind": "ReplicationControllerList",
"apiVersion": "v1beta1",
"items": [
{
"id": "testRun",
Expand Down Expand Up @@ -30,4 +32,4 @@
}
}
]
}
}
1 change: 1 addition & 0 deletions api/examples/controller.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"id": "nginxController",
"apiVersion": "v1beta1",
"kind": "ReplicationController",
"desiredState": {
"replicas": 2,
"replicaSelector": {"name": "nginx"},
Expand Down
2 changes: 2 additions & 0 deletions api/examples/external-service.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"id": "example",
"kind": "Service",
"apiVersion": "v1beta1",
"port": 8000,
"labels": {
"name": "nginx"
Expand Down
2 changes: 2 additions & 0 deletions api/examples/pod-list.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"kind": "PodList",
"apiVersion": "v1beta1",
"items": [
{
"id": "my-pod-1",
Expand Down
2 changes: 2 additions & 0 deletions api/examples/pod.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"kind": "Pod",
"apiVersion": "v1beta1",
"id": "php",
"desiredState": {
"manifest": {
Expand Down
2 changes: 2 additions & 0 deletions api/examples/service-list.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"kind": "ServiceList",
"apiVersion": "v1beta1",
"items": [
{
"id": "example1",
Expand Down
2 changes: 2 additions & 0 deletions api/examples/service.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"kind": "Service",
"apiVersion": "v1beta1",
"id": "example",
"port": 8000,
"labels": {
Expand Down
2 changes: 2 additions & 0 deletions examples/guestbook/frontend-controller.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"id": "frontendController",
"kind": "ReplicationController",
"apiVersion": "v1beta1",
"desiredState": {
"replicas": 3,
"replicaSelector": {"name": "frontend"},
Expand Down
2 changes: 2 additions & 0 deletions examples/guestbook/frontend-service.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"id": "frontend",
"kind": "Service",
"apiVersion": "v1beta1",
"port": 9998,
"selector": {
"name": "frontend"
Expand Down
2 changes: 2 additions & 0 deletions examples/guestbook/redis-master-service.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"id": "redismaster",
"kind": "Service",
"apiVersion": "v1beta1",
"port": 10000,
"selector": {
"name": "redis-master"
Expand Down
2 changes: 2 additions & 0 deletions examples/guestbook/redis-master.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"id": "redis-master-2",
"kind": "Pod",
"apiVersion": "v1beta1",
"desiredState": {
"manifest": {
"version": "v1beta1",
Expand Down
2 changes: 2 additions & 0 deletions examples/guestbook/redis-slave-controller.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"id": "redisSlaveController",
"kind": "ReplicationController",
"apiVersion": "v1beta1",
"desiredState": {
"replicas": 2,
"replicaSelector": {"name": "redisslave"},
Expand Down
2 changes: 2 additions & 0 deletions examples/guestbook/redis-slave-service.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"id": "redisslave",
"kind": "Service",
"apiVersion": "v1beta1",
"port": 10001,
"labels": {
"name": "redisslave"
Expand Down

0 comments on commit 3723eb7

Please sign in to comment.