You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This code deals with ResourceVersion. The current use of ResourceVersion stems from the Kubernetes bug where it fails to bump Generation for CRDs (still affects us until we move to 1.11 w/ /status subresource).
For CRDs without status (e.g. WarmImage, BuildTemplate) ResourceVersion is a useful stand-in because it changes at roughly the same pace as Spec.
However, for resources with status (e.g. Revision, or K8s resources) the methods we have are of limited use because they are too high-churn; this is because ResourceVersion will change every time /status changes as well, making the current methods unsuitable for child-resource instantiation for these parent resources.
These Generation variants will only be useful for our own CRDs once we're on 1.11, but once we are they should become the standard way of achieving this.
The text was updated successfully, but these errors were encountered:
Unlike `ResourceVersion`, which changes whenever the resource changes at all (including `/status` which can be high churn), `Generation` only changes when the `/spec` of a CRD changes (for CRDs starting in 1.11, right now they are locked at `generation: 1`).
These methods are useful for interacting with K8s resource now, and will be useful for CRDs soon.
Fixes: knative#116
Unlike `ResourceVersion`, which changes whenever the resource changes at all (including `/status` which can be high churn), `Generation` only changes when the `/spec` of a CRD changes (for CRDs starting in 1.11, right now they are locked at `generation: 1`).
These methods are useful for interacting with K8s resource now, and will be useful for CRDs soon.
Fixes: #116
This code deals with
ResourceVersion
. The current use ofResourceVersion
stems from the Kubernetes bug where it fails to bumpGeneration
for CRDs (still affects us until we move to 1.11 w//status
subresource).For CRDs without status (e.g. WarmImage, BuildTemplate)
ResourceVersion
is a useful stand-in because it changes at roughly the same pace asSpec
.However, for resources with status (e.g. Revision, or K8s resources) the methods we have are of limited use because they are too high-churn; this is because
ResourceVersion
will change every time/status
changes as well, making the current methods unsuitable for child-resource instantiation for these parent resources.These
Generation
variants will only be useful for our own CRDs once we're on 1.11, but once we are they should become the standard way of achieving this.The text was updated successfully, but these errors were encountered: