From 6fbbc9ee086079c27dbcf98dfae51be12b85775e Mon Sep 17 00:00:00 2001 From: Brendan Burns Date: Tue, 21 Oct 2014 07:19:55 -0700 Subject: [PATCH] Fix tests. --- examples/examples_test.go | 3 +++ examples/walkthrough/k8s201.md | 5 +++-- examples/walkthrough/service.yaml | 4 ++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/examples/examples_test.go b/examples/examples_test.go index 4da06d69962..cf6e090d2b9 100644 --- a/examples/examples_test.go +++ b/examples/examples_test.go @@ -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{}, }, } diff --git a/examples/walkthrough/k8s201.md b/examples/walkthrough/k8s201.md index 5aee2ea3f80..44ccdd57985 100644 --- a/examples/walkthrough/k8s201.md +++ b/examples/walkthrough/k8s201.md @@ -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 diff --git a/examples/walkthrough/service.yaml b/examples/walkthrough/service.yaml index 76f82f97f89..e5ce30b6395 100644 --- a/examples/walkthrough/service.yaml +++ b/examples/walkthrough/service.yaml @@ -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