Added pending phase for volumes. added defaults for PV/PVC. refactored to better phase transitioning in control loops

This commit is contained in:
markturansky
2015-04-21 11:05:15 -04:00
parent 37d7f3f4f1
commit a04420e548
16 changed files with 318 additions and 178 deletions

View File

@@ -58,6 +58,9 @@ func validNewPersistentVolume(name string) *api.PersistentVolume {
HostPath: &api.HostPathVolumeSource{Path: "/foo"},
},
},
Status: api.PersistentVolumeStatus{
Phase: api.VolumePending,
},
}
return pv
}