Skip to content

Commit

Permalink
Revert "Revert "Deleting old sample JSON; moving those in use; updati…
Browse files Browse the repository at this point in the history
…ng referenc..."
  • Loading branch information
alex-mohr committed Mar 9, 2015
1 parent 56bdd94 commit da9622a
Show file tree
Hide file tree
Showing 12 changed files with 9 additions and 154 deletions.
35 changes: 0 additions & 35 deletions api/examples/controller-list.json

This file was deleted.

13 changes: 0 additions & 13 deletions api/examples/external-service.json

This file was deleted.

54 changes: 0 additions & 54 deletions api/examples/pod-list.json

This file was deleted.

28 changes: 0 additions & 28 deletions api/examples/service-list.json

This file was deleted.

12 changes: 0 additions & 12 deletions api/examples/service.json

This file was deleted.

File renamed without changes.
2 changes: 1 addition & 1 deletion cmd/integration/integration.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ func podExists(c *client.Client, podNamespace string, podID string) wait.Conditi
}

func runReplicationControllerTest(c *client.Client) {
data, err := ioutil.ReadFile("api/examples/controller.json")
data, err := ioutil.ReadFile("cmd/integration/controller.json")
if err != nil {
glog.Fatalf("Unexpected error: %v", err)
}
Expand Down
2 changes: 1 addition & 1 deletion docs/getting-started-guides/azure.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ You can create a pod like this:

```
cd kubernetes
cluster/kubectl.sh create -f api/examples/pod.json
cluster/kubectl.sh create -f docs/getting-started-guides/pod.json
```

Where pod.json contains something like:
Expand Down
2 changes: 1 addition & 1 deletion docs/getting-started-guides/gce.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ can create a pod like this:

```bash
cd kubernetes
cluster/kubectl.sh create -f api/examples/pod.json
cluster/kubectl.sh create -f docs/getting-started-guides/pod.json
```

Where pod.json contains something like:
Expand Down
2 changes: 1 addition & 1 deletion docs/getting-started-guides/locally.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ However you can't view the nginx start page on localhost. To verify that nginx i
You can control the specifications of a pod via a user defined manifest, and reach nginx through your browser on the port specified therein:

```
cluster/kubectl.sh create -f api/examples/pod.json
cluster/kubectl.sh create -f docs/getting-started-guides/pod.json
```

Congratulations!
Expand Down
File renamed without changes.
13 changes: 5 additions & 8 deletions examples/examples_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,11 @@ func walkJSONFiles(inDir string, fn func(name, path string, data []byte)) error

func TestExampleObjectSchemas(t *testing.T) {
cases := map[string]map[string]runtime.Object{
"../api/examples": {
"controller": &api.ReplicationController{},
"controller-list": &api.ReplicationControllerList{},
"pod": &api.Pod{},
"pod-list": &api.PodList{},
"service": &api.Service{},
"external-service": &api.Service{},
"service-list": &api.ServiceList{},
"../docs/getting-started-guides": {
"pod": &api.Pod{},
},
"../cmd/integration": {
"controller": &api.ReplicationController{},
},
"../examples/guestbook": {
"frontend-controller": &api.ReplicationController{},
Expand Down

0 comments on commit da9622a

Please sign in to comment.