Skip to content

Commit

Permalink
Fix examples to set manifest ID and version
Browse files Browse the repository at this point in the history
Part 4 in a series of changes towards data validation.
  • Loading branch information
thockin committed Jun 30, 2014
1 parent 74e1b03 commit 9affd6d
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 2 deletions.
2 changes: 2 additions & 0 deletions api/examples/controller.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
"podTemplate": {
"desiredState": {
"manifest": {
"version": "v1beta1",
"id": "nginxController",
"containers": [{
"name": "nginx",
"image": "dockerfile/nginx",
Expand Down
6 changes: 5 additions & 1 deletion api/examples/pod-list.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
},
"desiredState": {
"manifest": {
"version": "v1beta1",
"id": "my-pod-1",
"containers": [{
"image": "dockerfile/nginx",
"ports": [{
Expand All @@ -29,6 +31,8 @@
},
"desiredState": {
"manifest": {
"version": "v1beta1",
"id": "my-pod-2",
"containers": [{
"image": "dockerfile/nginx",
"ports": [{
Expand All @@ -43,4 +47,4 @@
}
}
]
}
}
2 changes: 2 additions & 0 deletions api/examples/pod.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
"id": "php",
"desiredState": {
"manifest": {
"version": "v1beta1",
"id": "php",
"containers": [{
"image": "dockerfile/nginx",
"ports": [{
Expand Down
2 changes: 1 addition & 1 deletion cmd/integration/integration.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ containers:
image: dockerfile/redis
volumeMounts:
- name: redis-data
path: /data
mountPath: /data
- name: guestbook
image: google/guestbook-python-redis
Expand Down
2 changes: 2 additions & 0 deletions examples/guestbook/frontend-controller.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
"podTemplate": {
"desiredState": {
"manifest": {
"version": "v1beta1",
"id": "frontendController",
"containers": [{
"image": "brendanburns/php-redis",
"ports": [{"containerPort": 80, "hostPort": 8000}]
Expand Down
6 changes: 6 additions & 0 deletions examples/guestbook/guestbook.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ Create a file named `redis-master.json` describing a single pod, which runs a re
"id": "redis-master-2",
"desiredState": {
"manifest": {
"version": "v1beta1",
"id": "redis-master-2",
"containers": [{
"name": "master",
"image": "dockerfile/redis",
Expand Down Expand Up @@ -112,6 +114,8 @@ Create a file named `redis-slave-controller.json` that contains:
"podTemplate": {
"desiredState": {
"manifest": {
"version": "v1beta1",
"id": "redisSlaveController",
"containers": [{
"image": "brendanburns/redis-slave",
"ports": [{"containerPort": 6379, "hostPort": 6380}]
Expand Down Expand Up @@ -195,6 +199,8 @@ Create a file named `frontend-controller.json`:
"podTemplate": {
"desiredState": {
"manifest": {
"version": "v1beta1",
"id": "frontendController",
"containers": [{
"image": "brendanburns/php-redis",
"ports": [{"containerPort": 80, "hostPort": 8000}]
Expand Down
2 changes: 2 additions & 0 deletions examples/guestbook/redis-master.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
"id": "redis-master-2",
"desiredState": {
"manifest": {
"version": "v1beta1",
"id": "redis-master-2",
"containers": [{
"name": "master",
"image": "dockerfile/redis",
Expand Down
2 changes: 2 additions & 0 deletions examples/guestbook/redis-slave-controller.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
"podTemplate": {
"desiredState": {
"manifest": {
"version": "v1beta1",
"id": "redisSlaveController",
"containers": [{
"image": "brendanburns/redis-slave",
"ports": [{"containerPort": 6379, "hostPort": 6380}]
Expand Down

0 comments on commit 9affd6d

Please sign in to comment.