Skip to main content

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.

ConditionWhat it tells you
ReadyReports 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 reasonWhat to check
True / PublicationCommittedRead 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
FieldWhat to look for
typeNames the check. Use it to select the condition you want to inspect.
statusReports whether the named condition holds. Read the reason to see why.
reasonA short identifier for this outcome. Use it when comparing observations or filtering results.
messageWhen present, gives details about this object, such as the name of a dependency.
observedGenerationCompare with metadata.generation to see which version of the spec the controller checked.
lastTransitionTimeRecords the time of the last transition for this condition.
How to read status fields
FieldWhat it tells you
status.activeBuildRefSnapshotBuild that currently owns the attempt. Inspect its conditions while the snapshot is building.
status.dataIdentityIdentifies the selected source data. Use the published identity to pin a downstream operation to this snapshot.
status.diagnosticsController findings about this resource. Use the message and field, when available, to locate a validation or execution problem.
status.failureRecorded failure details. Inspect the reason and message to locate the failed operation.
status.lastAttemptOrdinalLast allocated attempt number. Compare it with build references to locate the most recent attempt.
status.lastBuildRefMost recent build to release the snapshot claim. Inspect that attempt to determine the outcome.
status.observedGenerationResource generation evaluated by the controller. Compare it with metadata.generation to check whether the status covers the current spec.
status.phaseCurrent stage reported by the controller. Use the conditions or failure details to diagnose why progress stopped.
status.publicationVerified snapshot publication. Use its root and result references to locate the committed snapshot and its data identity.
status.sourceResolutionRecorded source resolution. Inspect it to identify the data selected for this operation.
status.sourceSelectionImmutable 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.

FieldTypeRequiredDefaultSchema constraints and descriptions
statusobjectno—maxProperties 1024 · nullable true
status.activeBuildRefobjectno—SnapshotBuild that currently owns the attempt. Inspect its conditions while the snapshot is building. · maxProperties 1024 · nullable true
status.activeBuildRef.namestringyes—Name of the SnapshotBuild attempt. Inspect that resource for its execution state. · maxLength 253
status.activeBuildRef.ordinalintegeryes—Attempt number for this snapshot. Compare it with the selected build when inspecting or retrying an attempt. · format "uint32" · minimum 1
status.activeBuildRef.uidstringyes—UID of the SnapshotBuild. Match this value to distinguish a specific attempt from a replacement resource. · maxLength 128
status.conditionsarrayno—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[].lastTransitionTimestringyes—maxLength 2048
status.conditions[].messagestringyes—maxLength 1024
status.conditions[].observedGenerationintegeryes—format "int64"
status.conditions[].reasonstringyes—maxLength 128
status.conditions[].statusstringyes—enum ["True","False","Unknown"] · maxLength 2048
status.conditions[].typestringyes—maxLength 2048
status.dataIdentitystringno—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.diagnosticsarrayno—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[].codestringyes—maxLength 128
status.diagnostics[].fieldstringno—maxLength 2048 · nullable true
status.diagnostics[].messagestringyes—maxLength 1024
status.diagnostics[].relatedResourceobjectno—maxProperties 1024 · nullable true
status.diagnostics[].relatedResource.namestringyes—Kubernetes name of the referenced object in the same namespace. Use its metadata.name. · maxLength 253
status.diagnostics[].severitystringyes—enum ["Error","Warning","Info"] · maxLength 2048
status.diagnostics[].sourceSpanobjectno—maxProperties 1024 · nullable true
status.diagnostics[].sourceSpan.endByteintegeryes—format "int64"
status.diagnostics[].sourceSpan.endColumnintegeryes—format "int64"
status.diagnostics[].sourceSpan.endLineintegeryes—format "int64"
status.diagnostics[].sourceSpan.startByteintegeryes—format "int64"
status.diagnostics[].sourceSpan.startColumnintegeryes—format "int64"
status.diagnostics[].sourceSpan.startLineintegeryes—format "int64"
status.failureobjectno—Recorded failure details. Inspect the reason and message to locate the failed operation. · maxProperties 1024 · nullable true
status.failure.atstringyes—maxLength 2048
status.failure.codestringyes—maxLength 128
status.failure.detailsobjectno—maxProperties 1024 · nullable true · self.sizeBytes >= 0 && self.sizeBytes <= 9007199254740991
status.failure.details.digeststringyes—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.mediaTypestringyes—Use the recorded media type to identify the artifact representation. · maxLength 2048
status.failure.details.sizeBytesintegeryes—Use the published byte count when verifying a transferred artifact. · format "int64"
status.failure.details.uristringyes—Use this location to identify the published artifact during retrieval or diagnostics. · maxLength 2048
status.failure.messagestringyes—maxLength 1024
status.failure.relatedResourceobjectno—Exact related resource identity in the same namespace as the status owner. · maxProperties 1024 · nullable true
status.failure.relatedResource.apiVersionstringyes—maxLength 2048
status.failure.relatedResource.executionDigeststringno—maxLength 71 · nullable true · pattern "^sha256:[0-9a-f]{64}$"
status.failure.relatedResource.kindstringyes—maxLength 2048
status.failure.relatedResource.namestringyes—maxLength 253
status.failure.relatedResource.recoveryOrdinalintegerno—format "int32" · nullable true
status.failure.relatedResource.uidstringyes—maxLength 128
status.failure.retryablebooleanyes—
status.failure.stagestringno—Safe execution stage identifier, when the failing stage is known. · maxLength 2048 · nullable true
status.failure.suggestedActionstringno—Actionable guidance without credentials or raw provider response bodies. · maxLength 2048 · nullable true
status.lastAttemptOrdinalintegerno0Last allocated attempt number. Compare it with build references to locate the most recent attempt. · format "uint32" · minimum 0
status.lastBuildRefobjectno—Most recent build to release the snapshot claim. Inspect that attempt to determine the outcome. · maxProperties 1024 · nullable true
status.lastBuildRef.namestringyes—Name of the SnapshotBuild attempt. Inspect that resource for its execution state. · maxLength 253
status.lastBuildRef.ordinalintegeryes—Attempt number for this snapshot. Compare it with the selected build when inspecting or retrying an attempt. · format "uint32" · minimum 1
status.lastBuildRef.uidstringyes—UID of the SnapshotBuild. Match this value to distinguish a specific attempt from a replacement resource. · maxLength 128
status.observedGenerationintegerno—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.phasestringno—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.publicationobjectno—Verified snapshot publication. Use its root and result references to locate the committed snapshot and its data identity. · maxProperties 1024 · nullable true
status.publication.artifactDigeststringyes—maxLength 71 · pattern "^sha256:[0-9a-f]{64}$"
status.publication.committedAtstringyes—maxLength 2048
status.publication.dataIdentitystringyes—maxLength 71 · pattern "^sha256:[0-9a-f]{64}$"
status.publication.producerBuildUidstringyes—maxLength 128
status.publication.provenanceobjectyes—maxProperties 1024 · self.sizeBytes >= 0 && self.sizeBytes <= 9007199254740991
status.publication.provenance.digeststringyes—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.mediaTypestringyes—Use the recorded media type to identify the artifact representation. · maxLength 2048
status.publication.provenance.sizeBytesintegeryes—Use the published byte count when verifying a transferred artifact. · format "int64"
status.publication.provenance.uristringyes—Use this location to identify the published artifact during retrieval or diagnostics. · maxLength 2048
status.publication.resultobjectyes—maxProperties 1024 · self.sizeBytes >= 0 && self.sizeBytes <= 9007199254740991
status.publication.result.digeststringyes—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.mediaTypestringyes—Use the recorded media type to identify the artifact representation. · maxLength 2048
status.publication.result.sizeBytesintegeryes—Use the published byte count when verifying a transferred artifact. · format "int64"
status.publication.result.uristringyes—Use this location to identify the published artifact during retrieval or diagnostics. · maxLength 2048
status.publication.rootobjectyes—maxProperties 1024 · self.sizeBytes >= 0 && self.sizeBytes <= 9007199254740991
status.publication.root.digeststringyes—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.mediaTypestringyes—Use the recorded media type to identify the artifact representation. · maxLength 2048
status.publication.root.sizeBytesintegeryes—Use the published byte count when verifying a transferred artifact. · format "int64"
status.publication.root.uristringyes—Use this location to identify the published artifact during retrieval or diagnostics. · maxLength 2048
status.sourceResolutionobjectno—Recorded source resolution. Inspect it to identify the data selected for this operation. · maxProperties 1024 · nullable true
status.sourceResolution.consistencystringyes—enum ["ObjectVersions","ConditionalObjects","Manifest","BigQuerySnapshot","LakehouseSnapshot","ConnectorSnapshot"] · maxLength 2048
status.sourceResolution.dataIdentitystringyes—maxLength 71 · pattern "^sha256:[0-9a-f]{64}$"
status.sourceResolution.producerBuildUidstringyes—maxLength 128
status.sourceResolution.requestDigeststringyes—maxLength 71 · pattern "^sha256:[0-9a-f]{64}$"
status.sourceResolution.resolutionobjectyes—maxProperties 1024 · self.sizeBytes >= 0 && self.sizeBytes <= 9007199254740991
status.sourceResolution.resolution.digeststringyes—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.mediaTypestringyes—Use the recorded media type to identify the artifact representation. · maxLength 2048
status.sourceResolution.resolution.sizeBytesintegeryes—Use the published byte count when verifying a transferred artifact. · format "int64"
status.sourceResolution.resolution.uristringyes—Use this location to identify the published artifact during retrieval or diagnostics. · maxLength 2048
status.sourceResolution.resolvedAtstringyes—maxLength 2048
status.sourceResolution.stagedInputsobjectno—maxProperties 1024 · nullable true · self.sizeBytes >= 0 && self.sizeBytes <= 9007199254740991
status.sourceResolution.stagedInputs.digeststringyes—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.mediaTypestringyes—Use the recorded media type to identify the artifact representation. · maxLength 2048
status.sourceResolution.stagedInputs.sizeBytesintegeryes—Use the published byte count when verifying a transferred artifact. · format "int64"
status.sourceResolution.stagedInputs.uristringyes—Use this location to identify the published artifact during retrieval or diagnostics. · maxLength 2048
status.sourceSelectionobjectno—Immutable initial source selection, committed before any extraction starts. · maxProperties 1024 · nullable true · self.sizeBytes >= 0 && self.sizeBytes <= 9007199254740991
status.sourceSelection.digeststringyes—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.mediaTypestringyes—Use the recorded media type to identify the artifact representation. · maxLength 2048
status.sourceSelection.sizeBytesintegeryes—Use the published byte count when verifying a transferred artifact. · format "int64"
status.sourceSelection.uristringyes—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.

FieldWhen to use it
spec.data.coverageDeclares 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.completeFromSupply the UTC start when you know the earliest time with complete source data. Use it to bound historical queries.
spec.data.coverage.completeThroughSupply the latest UTC time through which the source is complete. Use the upstream completeness guarantee when selecting this bound.
spec.data.expectedTableDigestUse the selected Table's semantic digest to check that the build uses the intended table definition.
spec.data.sourceSpecifies how to resolve the source input for this snapshot. Manifest identity fields belong to Manifest mode.
spec.data.source.digestFor Manifest, supply the digest of the manifest contents to detect a different object at the same key.
spec.data.source.etagSupply the manifest object's ETag when using it to identify the intended object revision.
spec.data.source.keyFor Manifest, use the object key of the selected source manifest so the reader can locate it.
spec.data.source.modeUse ResolveCurrent for a connector snapshot. Manifest describes a pinned source manifest in the resource schema. Connector snapshot builds require ResolveCurrent.
spec.data.source.sizeBytesFor Manifest, use the byte length of the manifest object. The value lets the reader check the object it receives.
spec.data.source.versionIdFor a versioned manifest object, supply its exact storage version. The schema requires a version ID or ETag in Manifest mode.
spec.data.tableRefPins the workspace Table whose source and schema the snapshot will use.
spec.data.tableRef.generationCopy the selected resource’s Kubernetes generation to pin the revision that this operation uses.
spec.data.tableRef.nameUse the name of the selected resource in the workspace.
spec.data.tableRef.semanticDigestUse the published semantic digest to require the reviewed resource definition.
spec.data.tableRef.uidCopy 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.

FieldTypeRequiredDefaultSchema constraints and descriptions
specobjectyes—Pin the Table definition and specify the time range for which the source is complete. · maxProperties 1024
spec.dataobjectyes—Defines the immutable inputs for this table snapshot. Create a new snapshot for a different source selection or coverage interval. · maxProperties 1024
spec.data.coverageobjectyes—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.completeFromstringno—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.completeThroughstringyes—Supply the latest UTC time through which the source is complete. Use the upstream completeness guarantee when selecting this bound. · maxLength 16384
spec.data.expectedTableDigeststringyes—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.sourceobjectyes—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.digeststringno—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.etagstringno—Supply the manifest object's ETag when using it to identify the intended object revision. · maxLength 16384 · nullable true
spec.data.source.keystringno—For Manifest, use the object key of the selected source manifest so the reader can locate it. · maxLength 16384 · nullable true
spec.data.source.modestringyes—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.sizeBytesintegerno—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.versionIdstringno—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.tableRefobjectyes—Pins the workspace Table whose source and schema the snapshot will use. · maxProperties 1024
spec.data.tableRef.generationintegeryes—Copy the selected resource’s Kubernetes generation to pin the revision that this operation uses. · format "int64"
spec.data.tableRef.namestringyes—Use the name of the selected resource in the workspace. · maxLength 253
spec.data.tableRef.semanticDigeststringyes—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.uidstringyes—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.