TableSnapshot
Identifies a snapshot of one table and records the build that materializes it.
data.prokrust.ai/v1beta1 · Namespaced · tablesnapshots
Controller status
Conditions
Controller checks for this resource. Read the type, status, reason, and observed generation to diagnose the current state.
| Condition | What it tells you |
|---|---|
Ready | Reports whether the operator verified the snapshot artifacts and committed the parent snapshot publication. |
Before publication, conditions can be empty. If status.activeBuildRef is present, inspect the active build. A failed or cancelled attempt can retain the active claim while cleanup is uncertain. Once the claim is released, check status.failure and status.lastBuildRef. The source selection and resolution describe what the snapshot reads. A committed publication identifies the resulting table data. SnapshotBuild conditions
When publication completes
The operator verified the result and committed its publication on the parent snapshot.
status:
conditions:
- type: Ready
status: "True"
reason: PublicationCommitted
message: Immutable snapshot publication verified.
observedGeneration: 2
Match the condition generation to the snapshot generation, then read the result from the parent’s publication.
TableSnapshot condition results and reasons
Ready
| Status and reason | What to check |
|---|---|
True / PublicationCommitted | Read status.publication.result for the verified result and status.publication.root for the commit record. The producer build UID identifies the attempt. |
Condition field meanings
| Field | What to look for |
|---|---|
type | Names the check. Use it to select the condition you want to inspect. |
status | Reports whether the named condition holds. Read the reason to see why. |
reason | A short identifier for this outcome. Use it when comparing observations or filtering results. |
message | When present, gives details about this object, such as the name of a dependency. |
observedGeneration | Compare with metadata.generation to see which version of the spec the controller checked. |
lastTransitionTime | Records the time of the last transition for this condition. |
How to read status fields
| Field | What it tells you |
|---|---|
status.activeBuildRef | SnapshotBuild that currently owns the attempt. Inspect its conditions while the snapshot is building. |
status.dataIdentity | Identifies the selected source data. Use the published identity to pin a downstream operation to this snapshot. |
status.diagnostics | Controller findings about this resource. Use the message and field, when available, to locate a validation or execution problem. |
status.failure | Recorded failure details. Inspect the reason and message to locate the failed operation. |
status.lastAttemptOrdinal | Last allocated attempt number. Compare it with build references to locate the most recent attempt. |
status.lastBuildRef | Most recent build to release the snapshot claim. Inspect that attempt to determine the outcome. |
status.observedGeneration | Resource generation evaluated by the controller. Compare it with metadata.generation to check whether the status covers the current spec. |
status.phase | Current stage reported by the controller. Use the conditions or failure details to diagnose why progress stopped. |
status.publication | Verified snapshot publication. Use its root and result references to locate the committed snapshot and its data identity. |
status.sourceResolution | Recorded source resolution. Inspect it to identify the data selected for this operation. |
status.sourceSelection | Immutable initial source selection, committed before any extraction starts. |
Kubernetes schema for status
Required applies when the parent is present. A dash in the default column means the CRD declares no default.
| Field | Type | Required | Default | Schema constraints and descriptions |
|---|---|---|---|---|
status | object | no | — | maxProperties 1024 · nullable true |
status.activeBuildRef | object | no | — | SnapshotBuild that currently owns the attempt. Inspect its conditions while the snapshot is building. · maxProperties 1024 · nullable true |
status.activeBuildRef.name | string | yes | — | Name of the SnapshotBuild attempt. Inspect that resource for its execution state. · maxLength 253 |
status.activeBuildRef.ordinal | integer | yes | — | Attempt number for this snapshot. Compare it with the selected build when inspecting or retrying an attempt. · format "uint32" · minimum 1 |
status.activeBuildRef.uid | string | yes | — | UID of the SnapshotBuild. Match this value to distinguish a specific attempt from a replacement resource. · maxLength 128 |
status.conditions | array | no | — | Controller checks for this resource. Read the type, status, reason, and observed generation to diagnose the current state. · maxItems 8 |
status.conditions[] | object | — | — | maxProperties 1024 |
status.conditions[].lastTransitionTime | string | yes | — | maxLength 2048 |
status.conditions[].message | string | yes | — | maxLength 1024 |
status.conditions[].observedGeneration | integer | yes | — | format "int64" |
status.conditions[].reason | string | yes | — | maxLength 128 |
status.conditions[].status | string | yes | — | enum ["True","False","Unknown"] · maxLength 2048 |
status.conditions[].type | string | yes | — | maxLength 2048 |
status.dataIdentity | string | no | — | Identifies the selected source data. Use the published identity to pin a downstream operation to this snapshot. · maxLength 71 · nullable true · pattern "^sha256:[0-9a-f]{64}$" |
status.diagnostics | array | no | — | Controller findings about this resource. Use the message and field, when available, to locate a validation or execution problem. · maxItems 12 |
status.diagnostics[] | object | — | — | maxProperties 1024 |
status.diagnostics[].code | string | yes | — | maxLength 128 |
status.diagnostics[].field | string | no | — | maxLength 2048 · nullable true |
status.diagnostics[].message | string | yes | — | maxLength 1024 |
status.diagnostics[].relatedResource | object | no | — | maxProperties 1024 · nullable true |
status.diagnostics[].relatedResource.name | string | yes | — | Kubernetes name of the referenced object in the same namespace. Use its metadata.name. · maxLength 253 |
status.diagnostics[].severity | string | yes | — | enum ["Error","Warning","Info"] · maxLength 2048 |
status.diagnostics[].sourceSpan | object | no | — | maxProperties 1024 · nullable true |
status.diagnostics[].sourceSpan.endByte | integer | yes | — | format "int64" |
status.diagnostics[].sourceSpan.endColumn | integer | yes | — | format "int64" |
status.diagnostics[].sourceSpan.endLine | integer | yes | — | format "int64" |
status.diagnostics[].sourceSpan.startByte | integer | yes | — | format "int64" |
status.diagnostics[].sourceSpan.startColumn | integer | yes | — | format "int64" |
status.diagnostics[].sourceSpan.startLine | integer | yes | — | format "int64" |
status.failure | object | no | — | Recorded failure details. Inspect the reason and message to locate the failed operation. · maxProperties 1024 · nullable true |
status.failure.at | string | yes | — | maxLength 2048 |
status.failure.code | string | yes | — | maxLength 128 |
status.failure.details | object | no | — | maxProperties 1024 · nullable true · self.sizeBytes >= 0 && self.sizeBytes <= 9007199254740991 |
status.failure.details.digest | string | yes | — | SHA-256 digest of the artifact contents. Compare it with the downloaded bytes to verify the artifact. · maxLength 71 · pattern "^sha256:[0-9a-f]{64}$" · self.matches('^sha256:[0-9a-f]{64}$') |
status.failure.details.mediaType | string | yes | — | Use the recorded media type to identify the artifact representation. · maxLength 2048 |
status.failure.details.sizeBytes | integer | yes | — | Use the published byte count when verifying a transferred artifact. · format "int64" |
status.failure.details.uri | string | yes | — | Use this location to identify the published artifact during retrieval or diagnostics. · maxLength 2048 |
status.failure.message | string | yes | — | maxLength 1024 |
status.failure.relatedResource | object | no | — | Exact related resource identity in the same namespace as the status owner. · maxProperties 1024 · nullable true |
status.failure.relatedResource.apiVersion | string | yes | — | maxLength 2048 |
status.failure.relatedResource.executionDigest | string | no | — | maxLength 71 · nullable true · pattern "^sha256:[0-9a-f]{64}$" |
status.failure.relatedResource.kind | string | yes | — | maxLength 2048 |
status.failure.relatedResource.name | string | yes | — | maxLength 253 |
status.failure.relatedResource.recoveryOrdinal | integer | no | — | format "int32" · nullable true |
status.failure.relatedResource.uid | string | yes | — | maxLength 128 |
status.failure.retryable | boolean | yes | — | |
status.failure.stage | string | no | — | Safe execution stage identifier, when the failing stage is known. · maxLength 2048 · nullable true |
status.failure.suggestedAction | string | no | — | Actionable guidance without credentials or raw provider response bodies. · maxLength 2048 · nullable true |
status.lastAttemptOrdinal | integer | no | 0 | Last allocated attempt number. Compare it with build references to locate the most recent attempt. · format "uint32" · minimum 0 |
status.lastBuildRef | object | no | — | Most recent build to release the snapshot claim. Inspect that attempt to determine the outcome. · maxProperties 1024 · nullable true |
status.lastBuildRef.name | string | yes | — | Name of the SnapshotBuild attempt. Inspect that resource for its execution state. · maxLength 253 |
status.lastBuildRef.ordinal | integer | yes | — | Attempt number for this snapshot. Compare it with the selected build when inspecting or retrying an attempt. · format "uint32" · minimum 1 |
status.lastBuildRef.uid | string | yes | — | UID of the SnapshotBuild. Match this value to distinguish a specific attempt from a replacement resource. · maxLength 128 |
status.observedGeneration | integer | no | — | Resource generation evaluated by the controller. Compare it with metadata.generation to check whether the status covers the current spec. · format "int64" · nullable true |
status.phase | string | no | — | Current stage reported by the controller. Use the conditions or failure details to diagnose why progress stopped. · enum ["Pending","Building","Ready","Failed","Blocked",null] · maxLength 2048 · nullable true |
status.publication | object | no | — | Verified snapshot publication. Use its root and result references to locate the committed snapshot and its data identity. · maxProperties 1024 · nullable true |
status.publication.artifactDigest | string | yes | — | maxLength 71 · pattern "^sha256:[0-9a-f]{64}$" |
status.publication.committedAt | string | yes | — | maxLength 2048 |
status.publication.dataIdentity | string | yes | — | maxLength 71 · pattern "^sha256:[0-9a-f]{64}$" |
status.publication.producerBuildUid | string | yes | — | maxLength 128 |
status.publication.provenance | object | yes | — | maxProperties 1024 · self.sizeBytes >= 0 && self.sizeBytes <= 9007199254740991 |
status.publication.provenance.digest | string | yes | — | SHA-256 digest of the artifact contents. Compare it with the downloaded bytes to verify the artifact. · maxLength 71 · pattern "^sha256:[0-9a-f]{64}$" · self.matches('^sha256:[0-9a-f]{64}$') |
status.publication.provenance.mediaType | string | yes | — | Use the recorded media type to identify the artifact representation. · maxLength 2048 |
status.publication.provenance.sizeBytes | integer | yes | — | Use the published byte count when verifying a transferred artifact. · format "int64" |
status.publication.provenance.uri | string | yes | — | Use this location to identify the published artifact during retrieval or diagnostics. · maxLength 2048 |
status.publication.result | object | yes | — | maxProperties 1024 · self.sizeBytes >= 0 && self.sizeBytes <= 9007199254740991 |
status.publication.result.digest | string | yes | — | SHA-256 digest of the artifact contents. Compare it with the downloaded bytes to verify the artifact. · maxLength 71 · pattern "^sha256:[0-9a-f]{64}$" · self.matches('^sha256:[0-9a-f]{64}$') |
status.publication.result.mediaType | string | yes | — | Use the recorded media type to identify the artifact representation. · maxLength 2048 |
status.publication.result.sizeBytes | integer | yes | — | Use the published byte count when verifying a transferred artifact. · format "int64" |
status.publication.result.uri | string | yes | — | Use this location to identify the published artifact during retrieval or diagnostics. · maxLength 2048 |
status.publication.root | object | yes | — | maxProperties 1024 · self.sizeBytes >= 0 && self.sizeBytes <= 9007199254740991 |
status.publication.root.digest | string | yes | — | SHA-256 digest of the artifact contents. Compare it with the downloaded bytes to verify the artifact. · maxLength 71 · pattern "^sha256:[0-9a-f]{64}$" · self.matches('^sha256:[0-9a-f]{64}$') |
status.publication.root.mediaType | string | yes | — | Use the recorded media type to identify the artifact representation. · maxLength 2048 |
status.publication.root.sizeBytes | integer | yes | — | Use the published byte count when verifying a transferred artifact. · format "int64" |
status.publication.root.uri | string | yes | — | Use this location to identify the published artifact during retrieval or diagnostics. · maxLength 2048 |
status.sourceResolution | object | no | — | Recorded source resolution. Inspect it to identify the data selected for this operation. · maxProperties 1024 · nullable true |
status.sourceResolution.consistency | string | yes | — | enum ["ObjectVersions","ConditionalObjects","Manifest","BigQuerySnapshot","LakehouseSnapshot","ConnectorSnapshot"] · maxLength 2048 |
status.sourceResolution.dataIdentity | string | yes | — | maxLength 71 · pattern "^sha256:[0-9a-f]{64}$" |
status.sourceResolution.producerBuildUid | string | yes | — | maxLength 128 |
status.sourceResolution.requestDigest | string | yes | — | maxLength 71 · pattern "^sha256:[0-9a-f]{64}$" |
status.sourceResolution.resolution | object | yes | — | maxProperties 1024 · self.sizeBytes >= 0 && self.sizeBytes <= 9007199254740991 |
status.sourceResolution.resolution.digest | string | yes | — | SHA-256 digest of the artifact contents. Compare it with the downloaded bytes to verify the artifact. · maxLength 71 · pattern "^sha256:[0-9a-f]{64}$" · self.matches('^sha256:[0-9a-f]{64}$') |
status.sourceResolution.resolution.mediaType | string | yes | — | Use the recorded media type to identify the artifact representation. · maxLength 2048 |
status.sourceResolution.resolution.sizeBytes | integer | yes | — | Use the published byte count when verifying a transferred artifact. · format "int64" |
status.sourceResolution.resolution.uri | string | yes | — | Use this location to identify the published artifact during retrieval or diagnostics. · maxLength 2048 |
status.sourceResolution.resolvedAt | string | yes | — | maxLength 2048 |
status.sourceResolution.stagedInputs | object | no | — | maxProperties 1024 · nullable true · self.sizeBytes >= 0 && self.sizeBytes <= 9007199254740991 |
status.sourceResolution.stagedInputs.digest | string | yes | — | SHA-256 digest of the artifact contents. Compare it with the downloaded bytes to verify the artifact. · maxLength 71 · pattern "^sha256:[0-9a-f]{64}$" · self.matches('^sha256:[0-9a-f]{64}$') |
status.sourceResolution.stagedInputs.mediaType | string | yes | — | Use the recorded media type to identify the artifact representation. · maxLength 2048 |
status.sourceResolution.stagedInputs.sizeBytes | integer | yes | — | Use the published byte count when verifying a transferred artifact. · format "int64" |
status.sourceResolution.stagedInputs.uri | string | yes | — | Use this location to identify the published artifact during retrieval or diagnostics. · maxLength 2048 |
status.sourceSelection | object | no | — | Immutable initial source selection, committed before any extraction starts. · maxProperties 1024 · nullable true · self.sizeBytes >= 0 && self.sizeBytes <= 9007199254740991 |
status.sourceSelection.digest | string | yes | — | SHA-256 digest of the artifact contents. Compare it with the downloaded bytes to verify the artifact. · maxLength 71 · pattern "^sha256:[0-9a-f]{64}$" · self.matches('^sha256:[0-9a-f]{64}$') |
status.sourceSelection.mediaType | string | yes | — | Use the recorded media type to identify the artifact representation. · maxLength 2048 |
status.sourceSelection.sizeBytes | integer | yes | — | Use the published byte count when verifying a transferred artifact. · format "int64" |
status.sourceSelection.uri | string | yes | — | Use this location to identify the published artifact during retrieval or diagnostics. · maxLength 2048 |
Specification
Pin the Table definition and specify the time range for which the source is complete.
This resource requires data.
data
Defines the immutable inputs for this table snapshot. Create a new snapshot for a different source selection or coverage interval.
| Field | When to use it |
|---|---|
spec.data.coverage | Declares the period for which the source is complete. Use upstream evidence to choose the bounds. A maximum event timestamp alone cannot establish completeness. |
spec.data.coverage.completeFrom | Supply the UTC start when you know the earliest time with complete source data. Use it to bound historical queries. |
spec.data.coverage.completeThrough | Supply the latest UTC time through which the source is complete. Use the upstream completeness guarantee when selecting this bound. |
spec.data.expectedTableDigest | Use the selected Table's semantic digest to check that the build uses the intended table definition. |
spec.data.source | Specifies how to resolve the source input for this snapshot. Manifest identity fields belong to Manifest mode. |
spec.data.source.digest | For Manifest, supply the digest of the manifest contents to detect a different object at the same key. |
spec.data.source.etag | Supply the manifest object's ETag when using it to identify the intended object revision. |
spec.data.source.key | For Manifest, use the object key of the selected source manifest so the reader can locate it. |
spec.data.source.mode | Use ResolveCurrent for a connector snapshot. Manifest describes a pinned source manifest in the resource schema. Connector snapshot builds require ResolveCurrent. |
spec.data.source.sizeBytes | For Manifest, use the byte length of the manifest object. The value lets the reader check the object it receives. |
spec.data.source.versionId | For a versioned manifest object, supply its exact storage version. The schema requires a version ID or ETag in Manifest mode. |
spec.data.tableRef | Pins the workspace Table whose source and schema the snapshot will use. |
spec.data.tableRef.generation | Copy the selected resource’s Kubernetes generation to pin the revision that this operation uses. |
spec.data.tableRef.name | Use the name of the selected resource in the workspace. |
spec.data.tableRef.semanticDigest | Use the published semantic digest to require the reviewed resource definition. |
spec.data.tableRef.uid | Copy the selected resource’s Kubernetes UID to detect replacement under the same name. |
Kubernetes schema for spec
Required applies when the parent is present. A dash in the default column means the CRD declares no default.
| Field | Type | Required | Default | Schema constraints and descriptions |
|---|---|---|---|---|
spec | object | yes | — | Pin the Table definition and specify the time range for which the source is complete. · maxProperties 1024 |
spec.data | object | yes | — | Defines the immutable inputs for this table snapshot. Create a new snapshot for a different source selection or coverage interval. · maxProperties 1024 |
spec.data.coverage | object | yes | — | Declares the period for which the source is complete. Use upstream evidence to choose the bounds. A maximum event timestamp alone cannot establish completeness. · maxProperties 1024 · self.completeThrough.endsWith('Z') && timestamp(self.completeThrough) == timestamp(self.completeThrough) · !has(self.completeFrom) || (self.completeFrom.endsWith('Z') && timestamp(self.completeFrom) < timestamp(self.completeThrough)) |
spec.data.coverage.completeFrom | string | no | — | Supply the UTC start when you know the earliest time with complete source data. Use it to bound historical queries. · maxLength 16384 · nullable true |
spec.data.coverage.completeThrough | string | yes | — | Supply the latest UTC time through which the source is complete. Use the upstream completeness guarantee when selecting this bound. · maxLength 16384 |
spec.data.expectedTableDigest | string | yes | — | Use the selected Table's semantic digest to check that the build uses the intended table definition. · maxLength 71 · pattern "^sha256:[0-9a-f]{64}$" · self.matches('^sha256:[0-9a-f]{64}$') |
spec.data.source | object | yes | — | Specifies how to resolve the source input for this snapshot. Manifest identity fields belong to Manifest mode. · maxProperties 1024 · (self.mode == 'ResolveCurrent' && !has(self.key) && !has(self.versionId) && !has(self.etag) && !has(self.sizeBytes) && !has(self.digest)) || (self.mode == 'Manifest' && has(self.key) && (has(self.versionId) || has(self.etag)) && has(self.sizeBytes) && self.sizeBytes > 0 && has(self.digest)) |
spec.data.source.digest | string | no | — | For Manifest, supply the digest of the manifest contents to detect a different object at the same key. · maxLength 71 · nullable true · pattern "^sha256:[0-9a-f]{64}$" |
spec.data.source.etag | string | no | — | Supply the manifest object's ETag when using it to identify the intended object revision. · maxLength 16384 · nullable true |
spec.data.source.key | string | no | — | For Manifest, use the object key of the selected source manifest so the reader can locate it. · maxLength 16384 · nullable true |
spec.data.source.mode | string | yes | — | Use ResolveCurrent for a connector snapshot. Manifest describes a pinned source manifest in the resource schema. Connector snapshot builds require ResolveCurrent. · enum ["ResolveCurrent","Manifest"] · maxLength 16384 |
spec.data.source.sizeBytes | integer | no | — | For Manifest, use the byte length of the manifest object. The value lets the reader check the object it receives. · format "int64" · nullable true |
spec.data.source.versionId | string | no | — | For a versioned manifest object, supply its exact storage version. The schema requires a version ID or ETag in Manifest mode. · maxLength 16384 · nullable true |
spec.data.tableRef | object | yes | — | Pins the workspace Table whose source and schema the snapshot will use. · maxProperties 1024 |
spec.data.tableRef.generation | integer | yes | — | Copy the selected resource’s Kubernetes generation to pin the revision that this operation uses. · format "int64" |
spec.data.tableRef.name | string | yes | — | Use the name of the selected resource in the workspace. · maxLength 253 |
spec.data.tableRef.semanticDigest | string | yes | — | Use the published semantic digest to require the reviewed resource definition. · maxLength 71 · pattern "^sha256:[0-9a-f]{64}$" · self.matches('^sha256:[0-9a-f]{64}$') |
spec.data.tableRef.uid | string | yes | — | Copy the selected resource’s Kubernetes UID to detect replacement under the same name. · maxLength 128 |
The validation schema matches prokrust-crds 0.23.0-rc.1.