Make VolumeSource not be a pointer

There's no reason for it to be a pointer.
This commit is contained in:
Tim Hockin
2015-01-20 17:40:43 -08:00
parent a9cbc58b8e
commit 819803b79f
18 changed files with 45 additions and 50 deletions

View File

@@ -45,7 +45,7 @@ func ExampleManifestAndPod(id string) (api.ContainerManifest, api.BoundPod) {
Volumes: []api.Volume{
{
Name: "host-dir",
Source: &api.VolumeSource{
Source: api.VolumeSource{
HostPath: &api.HostPath{"/dir/path"},
},
},
@@ -67,7 +67,7 @@ func ExampleManifestAndPod(id string) (api.ContainerManifest, api.BoundPod) {
Volumes: []api.Volume{
{
Name: "host-dir",
Source: &api.VolumeSource{
Source: api.VolumeSource{
HostPath: &api.HostPath{"/dir/path"},
},
},