Skip to main content

GraphSnapshot

Identifies a snapshot of a graph and records the build that materializes it.

data.prokrust.ai/v1beta1 · Namespaced · graphsnapshots

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 publication’s artifact digest and data identity identify the materialized graph. The Graph has a separate artifact for its definition. 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.

GraphSnapshot 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 a Graph definition and the published table snapshots that will supply its data. Use one table snapshot per graph alias.

This resource requires data.

data​

Defines the immutable inputs and formats for this graph snapshot. Create a new snapshot to use different input data.

FieldWhen to use it
spec.data.expectedGraphDigestUse the selected Graph's semantic digest. The snapshot uses it to verify the expected graph definition.
spec.data.formatVersionIdentifies the graph artifact format. This API requires prokrust.graph/v2.
spec.data.graphRefPins the Graph resource and revision used to resolve table aliases and relations.
spec.data.graphRef.generationCopy the selected resource’s Kubernetes generation to pin the revision that this operation uses.
spec.data.graphRef.nameUse the name of the selected resource in the workspace.
spec.data.graphRef.semanticDigestUse the published semantic digest to require the reviewed resource definition.
spec.data.graphRef.uidCopy the selected resource’s Kubernetes UID to detect replacement under the same name.
spec.data.samplerVersionIdentifies the graph sampling algorithm version. This API requires prokrust.sampler/v1.
spec.data.tableSnapshotsChoose one published TableSnapshot for each graph table alias. Use a different publication when you need different source data.
spec.data.tableSnapshots[key].artifactDigestUse the artifact digest from the snapshot publication. This checks that the build consumes the intended published artifact.
spec.data.tableSnapshots[key].dataIdentityUse the data identity from the same publication. This pins the selected source data.
spec.data.tableSnapshots[key].nameWorkspace name of the snapshot. Check the UID as well when selecting a specific publication.
spec.data.tableSnapshots[key].uidKubernetes UID of the published snapshot. Use it to detect a replacement with 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 a Graph definition and the published table snapshots that will supply its data. Use one table snapshot per graph alias. · maxProperties 1024
spec.dataobjectyes—Defines the immutable inputs and formats for this graph snapshot. Create a new snapshot to use different input data. · maxProperties 1024 · self.formatVersion == 'prokrust.graph/v2' && self.samplerVersion == 'prokrust.sampler/v1'
spec.data.expectedGraphDigeststringyes—Use the selected Graph's semantic digest. The snapshot uses it to verify the expected graph definition. · maxLength 71 · pattern "^sha256:[0-9a-f]{64}$" · self.matches('^sha256:[0-9a-f]{64}$')
spec.data.formatVersionstringyes—Identifies the graph artifact format. This API requires prokrust.graph/v2. · maxLength 16384
spec.data.graphRefobjectyes—Pins the Graph resource and revision used to resolve table aliases and relations. · maxProperties 1024
spec.data.graphRef.generationintegeryes—Copy the selected resource’s Kubernetes generation to pin the revision that this operation uses. · format "int64"
spec.data.graphRef.namestringyes—Use the name of the selected resource in the workspace. · maxLength 253
spec.data.graphRef.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.graphRef.uidstringyes—Copy the selected resource’s Kubernetes UID to detect replacement under the same name. · maxLength 128
spec.data.samplerVersionstringyes—Identifies the graph sampling algorithm version. This API requires prokrust.sampler/v1. · maxLength 16384
spec.data.tableSnapshotsobjectyes—Choose one published TableSnapshot for each graph table alias. Use a different publication when you need different source data. · maxProperties 1024
spec.data.tableSnapshots[key]object——Exact captured input; names alone never authorize graph input reuse. · maxProperties 1024
spec.data.tableSnapshots[key].artifactDigeststringyes—Use the artifact digest from the snapshot publication. This checks that the build consumes the intended published artifact. · maxLength 71 · pattern "^sha256:[0-9a-f]{64}$"
spec.data.tableSnapshots[key].dataIdentitystringyes—Use the data identity from the same publication. This pins the selected source data. · maxLength 71 · pattern "^sha256:[0-9a-f]{64}$"
spec.data.tableSnapshots[key].namestringyes—Workspace name of the snapshot. Check the UID as well when selecting a specific publication. · maxLength 253
spec.data.tableSnapshots[key].uidstringyes—Kubernetes UID of the published snapshot. Use it to detect a replacement with the same name. · maxLength 128

The validation schema matches prokrust-crds 0.23.0-rc.1.