Make VolumeSource not be a pointer
There's no reason for it to be a pointer.
This commit is contained in:
@@ -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"},
|
||||
},
|
||||
},
|
||||
|
Reference in New Issue
Block a user