mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 03:41:45 +00:00
move type documentation from tags to comments
This commit is contained in:
parent
e27a76ae81
commit
10747841a0
File diff suppressed because it is too large
Load Diff
@ -807,8 +807,8 @@ __EOF__
|
||||
file="${KUBE_TEMP}/schema-${version}.json"
|
||||
curl -s "http://127.0.0.1:${API_PORT}/swaggerapi/api/${version}" > "${file}"
|
||||
[[ "$(grep "list of returned" "${file}")" ]]
|
||||
[[ "$(grep "list of pods" "${file}")" ]]
|
||||
[[ "$(grep "watch for changes to the described resources" "${file}")" ]]
|
||||
[[ "$(grep "List of pods" "${file}")" ]]
|
||||
[[ "$(grep "Watch for changes to the described resources" "${file}")" ]]
|
||||
fi
|
||||
|
||||
kube::test::clear_all
|
||||
|
@ -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.
|
||||
|
2091
pkg/api/v1/types.go
2091
pkg/api/v1/types.go
File diff suppressed because it is too large
Load Diff
1411
pkg/api/v1/types_swagger_doc_generated.go
Normal file
1411
pkg/api/v1/types_swagger_doc_generated.go
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user