move type documentation from tags to comments
This commit is contained in:
@@ -197,6 +197,7 @@ type VolumeSource struct {
|
||||
// directly exposed to the container. This is generally used for system
|
||||
// agents or other privileged things that are allowed to see the host
|
||||
// machine. Most containers will NOT need this.
|
||||
// ---
|
||||
// TODO(jonesdl) We need to restrict who can use host directory mounts and who can/can not
|
||||
// mount host directories as read/write.
|
||||
HostPath *HostPathVolumeSource `json:"hostPath,omitempty"`
|
||||
@@ -290,10 +291,12 @@ const (
|
||||
// PersistentVolumeReclaimRecycle means the volume will be recycled back into the pool of unbound persistent volumes on release from its claim.
|
||||
// The volume plugin must support Recycling.
|
||||
PersistentVolumeReclaimRecycle PersistentVolumeReclaimPolicy = "Recycle"
|
||||
|
||||
// PersistentVolumeReclaimDelete means the volume will be deleted from Kubernetes on release from its claim.
|
||||
// The volume plugin must support Deletion.
|
||||
// TODO: implement w/ DeletableVolumePlugin
|
||||
// PersistentVolumeReclaimDelete PersistentVolumeReclaimPolicy = "Delete"
|
||||
|
||||
// PersistentVolumeReclaimRetain means the volume will left in its current phase (Released) for manual reclamation by the administrator.
|
||||
// The default policy is Retain.
|
||||
PersistentVolumeReclaimRetain PersistentVolumeReclaimPolicy = "Retain"
|
||||
@@ -805,9 +808,7 @@ type ContainerState struct {
|
||||
|
||||
type ContainerStatus struct {
|
||||
// Each container in a pod must have a unique name.
|
||||
Name string `json:"name"`
|
||||
// TODO(dchen1107): Should we rename PodStatus to a more generic name or have a separate states
|
||||
// defined for container?
|
||||
Name string `json:"name"`
|
||||
State ContainerState `json:"state,omitempty"`
|
||||
LastTerminationState ContainerState `json:"lastState,omitempty"`
|
||||
// Ready specifies whether the conatiner has passed its readiness check.
|
||||
|
||||
Reference in New Issue
Block a user