Skip to content

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
brendandburns committed Oct 21, 2014
1 parent 465acd5 commit 6fbbc9e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
3 changes: 3 additions & 0 deletions examples/examples_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ func TestExampleObjectSchemas(t *testing.T) {
"../examples/walkthrough": {
"pod1": &api.Pod{},
"pod2": &api.Pod{},
"pod-with-http-healthcheck": &api.Pod{},
"service": &api.Service{},
"replication-controller": &api.ReplicationController{},
},
}

Expand Down
5 changes: 3 additions & 2 deletions examples/walkthrough/k8s201.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,15 @@ For example, here is a service that balances across the pods created in the prev
```yaml
kind: Service
apiVersion: v1beta1
id: nginxExample
# must be a DNS compatible name
id: nginx-example
# the port that this service should serve on
port: 8000
# just like the selector in the replication controller,
# but this time it identifies the set of pods to load balance
# traffic to.
selector:
- name: nginx
name: nginx
# the container on each pod to connect to, can be a name
# (e.g. 'www') or a number (e.g. 80)
containerPort: 80
Expand Down
4 changes: 2 additions & 2 deletions examples/walkthrough/service.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
kind: Service
apiVersion: v1beta1
id: nginxExample
id: nginx-example
# the port that this service should serve on
port: 8000
# just like the selector in the replication controller,
# but this time it identifies the set of pods to load balance
# traffic to.
selector:
- name: nginx
name: nginx
# the container on each pod to connect to, can be a name
# (e.g. 'www') or a number (e.g. 80)
containerPort: 80

0 comments on commit 6fbbc9e

Please sign in to comment.