mirror of https://github.com/k3s-io/k3s
commit
fa8bb5f18e
|
@ -33,7 +33,7 @@ Documentation for other releases can be found at
|
|||
API Conventions
|
||||
===============
|
||||
|
||||
Updated: 9/20/2015
|
||||
Updated: 10/8/2015
|
||||
|
||||
*This document is oriented at users who want a deeper understanding of the Kubernetes
|
||||
API structure, and developers wanting to extend the Kubernetes API. An introduction to
|
||||
|
@ -172,7 +172,7 @@ When a new version of an object is POSTed or PUT, the "spec" is updated and avai
|
|||
|
||||
The Kubernetes API also serves as the foundation for the declarative configuration schema for the system. In order to facilitate level-based operation and expression of declarative configuration, fields in the specification should have declarative rather than imperative names and semantics -- they represent the desired state, not actions intended to yield the desired state.
|
||||
|
||||
The PUT and POST verbs on objects will ignore the "status" values. A `/status` subresource is provided to enable system components to update statuses of resources they manage.
|
||||
The PUT and POST verbs on objects MUST ignore the "status" values, to avoid accidentally overwriting the status in read-modify-write scenarios. A `/status` subresource MUST be provided to enable system components to update statuses of resources they manage.
|
||||
|
||||
Otherwise, PUT expects the whole object to be specified. Therefore, if a field is omitted it is assumed that the client wants to clear that field's value. The PUT verb does not accept partial updates. Modification of just part of an object may be achieved by GETting the resource, modifying part of the spec, labels, or annotations, and then PUTting it back. See [concurrency control](#concurrency-control-and-consistency), below, regarding read-modify-write consistency when using this pattern. Some objects may expose alternative resource representations that allow mutation of the status, or performing custom actions on the object.
|
||||
|
||||
|
|
Loading…
Reference in New Issue