Resource: Revision
Revision is an immutable snapshot of code and configuration. A revision references a container image. Revisions are created by updates to a Configuration.
See also: https://github.com/knative/specs/blob/main/specs/serving/overview.md#revision
JSON representation |
---|
{ "apiVersion": string, "kind": string, "metadata": { object ( |
Fields | |
---|---|
apiVersion |
The API version for this call such as "serving.knative.dev/v1". |
kind |
The kind of this resource, in this case "Revision". |
metadata |
Metadata associated with this Revision, including name, namespace, labels, and annotations. |
spec |
Spec holds the desired state of the Revision (from the client). |
status |
Status communicates the observed state of the Revision (from the controller). |
RevisionStatus
RevisionStatus communicates the observed state of the Revision (from the controller).
JSON representation |
---|
{
"observedGeneration": integer,
"conditions": [
{
object ( |
Fields | |
---|---|
observedGeneration |
ObservedGeneration is the 'Generation' of the Revision that was last processed by the controller. Clients polling for completed reconciliation should poll until observedGeneration = metadata.generation, and the Ready condition's status is True or False. |
conditions[] |
Conditions communicate information about ongoing/complete reconciliation processes that bring the "spec" inline with the observed state of the world. As a Revision is being prepared, it will incrementally update conditions. Revision-specific conditions include:
|
logUrl |
Optional. Specifies the generated logging url for this particular revision based on the revision url template specified in the controller's config. |
serviceName |
Not currently used by Cloud Run. |
imageDigest |
ImageDigest holds the resolved digest for the image specified within .Spec.Container.Image. The digest is resolved during the creation of Revision. This field holds the digest value regardless of whether a tag or digest was originally specified in the Container object. |
desiredReplicas |
Output only. The configured number of instances running this revision. For Cloud Run, this only includes instances provisioned using the minScale annotation. It does not include instances created by autoscaling. |
Methods |
|
---|---|
|
Delete a revision. |
|
Get information about a revision. |
|
List revisions. |