mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-16 06:32:32 +00:00
Added pending phase for volumes. added defaults for PV/PVC. refactored to better phase transitioning in control loops
This commit is contained in:
@@ -58,6 +58,9 @@ func validNewPersistentVolume(name string) *api.PersistentVolume {
|
||||
HostPath: &api.HostPathVolumeSource{Path: "/foo"},
|
||||
},
|
||||
},
|
||||
Status: api.PersistentVolumeStatus{
|
||||
Phase: api.VolumePending,
|
||||
},
|
||||
}
|
||||
return pv
|
||||
}
|
||||
|
Reference in New Issue
Block a user