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.
| 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 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 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 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.
| Field | When to use it |
|---|---|
spec.data.expectedGraphDigest | Use the selected Graph's semantic digest. The snapshot uses it to verify the expected graph definition. |
spec.data.formatVersion | Identifies the graph artifact format. This API requires prokrust.graph/v2. |
spec.data.graphRef | Pins the Graph resource and revision used to resolve table aliases and relations. |
spec.data.graphRef.generation | Copy the selected resource’s Kubernetes generation to pin the revision that this operation uses. |
spec.data.graphRef.name | Use the name of the selected resource in the workspace. |
spec.data.graphRef.semanticDigest | Use the published semantic digest to require the reviewed resource definition. |
spec.data.graphRef.uid | Copy the selected resource’s Kubernetes UID to detect replacement under the same name. |
spec.data.samplerVersion | Identifies the graph sampling algorithm version. This API requires prokrust.sampler/v1. |
spec.data.tableSnapshots | Choose one published TableSnapshot for each graph table alias. Use a different publication when you need different source data. |
spec.data.tableSnapshots[key].artifactDigest | Use the artifact digest from the snapshot publication. This checks that the build consumes the intended published artifact. |
spec.data.tableSnapshots[key].dataIdentity | Use the data identity from the same publication. This pins the selected source data. |
spec.data.tableSnapshots[key].name | Workspace name of the snapshot. Check the UID as well when selecting a specific publication. |
spec.data.tableSnapshots[key].uid | Kubernetes 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.
| Field | Type | Required | Default | Schema constraints and descriptions |
|---|---|---|---|---|
spec | object | yes | — | Pin a Graph definition and the published table snapshots that will supply its data. Use one table snapshot per graph alias. · maxProperties 1024 |
spec.data | object | yes | — | 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.expectedGraphDigest | string | yes | — | 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.formatVersion | string | yes | — | Identifies the graph artifact format. This API requires prokrust.graph/v2. · maxLength 16384 |
spec.data.graphRef | object | yes | — | Pins the Graph resource and revision used to resolve table aliases and relations. · maxProperties 1024 |
spec.data.graphRef.generation | integer | yes | — | Copy the selected resource’s Kubernetes generation to pin the revision that this operation uses. · format "int64" |
spec.data.graphRef.name | string | yes | — | Use the name of the selected resource in the workspace. · maxLength 253 |
spec.data.graphRef.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.graphRef.uid | string | yes | — | Copy the selected resource’s Kubernetes UID to detect replacement under the same name. · maxLength 128 |
spec.data.samplerVersion | string | yes | — | Identifies the graph sampling algorithm version. This API requires prokrust.sampler/v1. · maxLength 16384 |
spec.data.tableSnapshots | object | yes | — | 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].artifactDigest | string | yes | — | 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].dataIdentity | string | yes | — | 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].name | string | yes | — | Workspace name of the snapshot. Check the UID as well when selecting a specific publication. · maxLength 253 |
spec.data.tableSnapshots[key].uid | string | yes | — | 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.