Embed VolumeSource in v1beta3 and internal.

This commit is contained in:
Brendan Burns
2015-03-03 14:48:55 -08:00
parent 6f85bd0c66
commit fb90b56bf6
29 changed files with 122 additions and 96 deletions

View File

@@ -192,7 +192,7 @@ func testPDPod(diskName, targetHost string, readOnly bool) *api.Pod {
Volumes: []api.Volume{
{
Name: "testpd",
Source: api.VolumeSource{
VolumeSource: api.VolumeSource{
GCEPersistentDisk: &api.GCEPersistentDiskVolumeSource{
PDName: diskName,
FSType: "ext4",

View File

@@ -79,7 +79,7 @@ var _ = Describe("Secrets", func() {
Volumes: []api.Volume{
{
Name: volumeName,
Source: api.VolumeSource{
VolumeSource: api.VolumeSource{
Secret: &api.SecretVolumeSource{
Target: api.ObjectReference{
Kind: "Secret",

View File

@@ -75,7 +75,7 @@ var _ = Describe("Services", func() {
Volumes: []api.Volume{
{
Name: "results",
Source: api.VolumeSource{
VolumeSource: api.VolumeSource{
EmptyDir: &api.EmptyDirVolumeSource{},
},
},