SnapshotPreparation
Coordinates the table and graph snapshots needed for a graph at the requested coverage.
data.prokrust.ai/v1beta1 · Namespaced · snapshotpreparations
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 |
|---|---|
DependenciesReady | Reports whether the operator resolved its plan dependencies. Cancellation can also set this to true. |
InputsBound | Reports whether the preparation bound its inputs. Read status.resolvedPlanRef to locate the plan. |
Progressing | Reports active work on bound inputs. Check status.tables and status.graphSnapshot for the current step. |
Ready | Reports whether the operator verified the published graph snapshot. On success, read status.outputs.graphSnapshot. |
For NeedsReview, inspect pinDiagnostic and lastPinMismatch. Some branches write a phase and diagnostic before they refresh conditions. Compare the condition generation with the preparation generation.
When plan storage is unavailable
A preparation that cannot load its plan reports the storage diagnostic in its dependency condition.
status:
conditions:
- type: DependenciesReady
status: "False"
reason: PlanStorageUnavailable
message: PlanStorageUnavailable
observedGeneration: 2
Inspect artifact storage access for the preparation. On recovery, check the plan reference and the child snapshot statuses.
SnapshotPreparation condition results and reasons
DependenciesReady
| Status and reason | What to check |
|---|---|
False / DependencyObservationUnavailable | Check the Kubernetes dependency named in the diagnostic and retry the read. |
False / Forbidden | Check the permissions for the resource named in the preparation diagnostic. |
False / PlanStorageUnavailable | Check access to the store that holds the preparation plan. |
False / PlanValidationFailed | Read the plan diagnostic and inspect the inputs it identifies. |
False / WaitingForDependencies | Check the pending connector and the readiness of its runtime. |
True / Blocked | Read the phase and diagnostic code, then inspect the child or pin identified there. |
True / Cancelled | Check the child steps and the plan reference to see which inputs were already bound when cancellation began. |
True / Cancelling | Check the child steps and the plan reference to see which inputs were already bound when cancellation began. |
True / Failed | Read the phase and diagnostic code, then inspect the child or pin identified there. |
True / InputsBound | The operator stored the input plan. Check its reference before following the child snapshots. |
True / Preparing | Follow the table aliases in status.tables and the graph snapshot step to find the active child. |
True / Ready | Use the graph snapshot name, UID, artifact digest, and data identity in the outputs. |
False / The plan diagnostic in status.diagnosticCode | Inspect the diagnostic and the failed resource or storage operation. A dependency lookup can supply its own reason. |
InputsBound
| Status and reason | What to check |
|---|---|
False / Cancelled | Check the child steps and the plan reference to see which inputs were already bound when cancellation began. |
False / Cancelling | Check the child steps and the plan reference to see which inputs were already bound when cancellation began. |
False / DependencyObservationUnavailable | Check the Kubernetes dependency named in the diagnostic and retry the read. |
False / Forbidden | Check the permissions for the resource named in the preparation diagnostic. |
False / PlanStorageUnavailable | Check access to the store that holds the preparation plan. |
False / PlanValidationFailed | Read the plan diagnostic and inspect the inputs it identifies. |
False / WaitingForDependencies | Check the pending connector and the readiness of its runtime. |
True / Blocked | Read the phase and diagnostic code, then inspect the child or pin identified there. |
True / Cancelled | Check the child steps and the plan reference to see which inputs were already bound when cancellation began. |
True / Cancelling | Check the child steps and the plan reference to see which inputs were already bound when cancellation began. |
True / Failed | Read the phase and diagnostic code, then inspect the child or pin identified there. |
True / InputsBound | The operator stored the input plan. Check its reference before following the child snapshots. |
True / Preparing | Follow the table aliases in status.tables and the graph snapshot step to find the active child. |
True / Ready | Use the graph snapshot name, UID, artifact digest, and data identity in the outputs. |
False / The plan diagnostic in status.diagnosticCode | Inspect the diagnostic and the failed resource or storage operation. A dependency lookup can supply its own reason. |
Progressing
| Status and reason | What to check |
|---|---|
False / Blocked | Read the phase and diagnostic code, then inspect the child or pin identified there. |
False / Cancelled | Check the child steps and the plan reference to see which inputs were already bound when cancellation began. |
False / Cancelling | Check the child steps and the plan reference to see which inputs were already bound when cancellation began. |
False / DependencyObservationUnavailable | Check the Kubernetes dependency named in the diagnostic and retry the read. |
False / Failed | Read the phase and diagnostic code, then inspect the child or pin identified there. |
False / Forbidden | Check the permissions for the resource named in the preparation diagnostic. |
False / PlanStorageUnavailable | Check access to the store that holds the preparation plan. |
False / PlanValidationFailed | Read the plan diagnostic and inspect the inputs it identifies. |
False / Ready | Use the graph snapshot name, UID, artifact digest, and data identity in the outputs. |
False / WaitingForDependencies | Check the pending connector and the readiness of its runtime. |
True / Cancelling | Check the child steps and the plan reference to see which inputs were already bound when cancellation began. |
True / InputsBound | The operator stored the input plan. Check its reference before following the child snapshots. |
True / Preparing | Follow the table aliases in status.tables and the graph snapshot step to find the active child. |
False / The plan diagnostic in status.diagnosticCode | Inspect the diagnostic and the failed resource or storage operation. A dependency lookup can supply its own reason. |
Ready
| Status and reason | What to check |
|---|---|
False / Blocked | Read the phase and diagnostic code, then inspect the child or pin identified there. |
False / Cancelled | Check the child steps and the plan reference to see which inputs were already bound when cancellation began. |
False / Cancelling | Check the child steps and the plan reference to see which inputs were already bound when cancellation began. |
False / DependencyObservationUnavailable | Check the Kubernetes dependency named in the diagnostic and retry the read. |
False / Failed | Read the phase and diagnostic code, then inspect the child or pin identified there. |
False / Forbidden | Check the permissions for the resource named in the preparation diagnostic. |
False / InputsBound | The operator stored the input plan. Check its reference before following the child snapshots. |
False / PlanStorageUnavailable | Check access to the store that holds the preparation plan. |
False / PlanValidationFailed | Read the plan diagnostic and inspect the inputs it identifies. |
False / Preparing | Follow the table aliases in status.tables and the graph snapshot step to find the active child. |
False / WaitingForDependencies | Check the pending connector and the readiness of its runtime. |
True / Ready | Use the graph snapshot name, UID, artifact digest, and data identity in the outputs. |
False / The plan diagnostic in status.diagnosticCode | Inspect the diagnostic and the failed resource or storage operation. A dependency lookup can supply its own reason. |
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.diagnosticCode | Identifies the preparation problem. Inspect the affected step and any pin diagnostic for its expected and observed inputs. |
status.graphSnapshot | Progress of the preparation’s graph build step. Inspect the published output for the final graph snapshot. |
status.lastPinMismatch | Retained after recovery so the last exact mismatch remains explainable. |
status.observedCommandId | Most recent retry command acknowledged by the controller. Match it with the submitted retry identifier. |
status.observedCommandSequence | Sequence of the last retry command acknowledged by the controller. Check it before submitting the next sequence. |
status.observedGeneration | Resource generation evaluated by the controller. Compare it with metadata.generation to check whether the status covers the current spec. |
status.outputs | Published output references. Use these to select a result by identity after the workload succeeds. |
status.phase | Current stage reported by the controller. Use the conditions or failure details to diagnose why progress stopped. |
status.pinDiagnostic | Current mismatch or missing observation for a pinned resource. Check the field, expected value, and observed value. |
status.resolvedPlanRef | Reference to the preparation plan the controller accepted. Use it when diagnosing a change in pinned inputs. |
status.tables | Preparation steps keyed by graph table alias. Inspect the relevant entry when one input is blocked. |
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.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.diagnosticCode | string | no | — | Identifies the preparation problem. Inspect the affected step and any pin diagnostic for its expected and observed inputs. · maxLength 2048 · nullable true |
status.graphSnapshot | object | no | — | Progress of the preparation’s graph build step. Inspect the published output for the final graph snapshot. · maxProperties 1024 · nullable true |
status.graphSnapshot.activeBuildRef | object | no | — | maxProperties 1024 · nullable true |
status.graphSnapshot.activeBuildRef.name | string | yes | — | Name of the SnapshotBuild attempt. Inspect that resource for its execution state. · maxLength 253 |
status.graphSnapshot.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.graphSnapshot.activeBuildRef.uid | string | yes | — | UID of the SnapshotBuild. Match this value to distinguish a specific attempt from a replacement resource. · maxLength 128 |
status.graphSnapshot.attempt | integer | yes | — | format "uint32" · maximum 32 · minimum 0 |
status.graphSnapshot.diagnosticCode | string | no | — | maxLength 2048 · nullable true |
status.graphSnapshot.lastBuildRef | object | no | — | maxProperties 1024 · nullable true |
status.graphSnapshot.lastBuildRef.name | string | yes | — | Name of the SnapshotBuild attempt. Inspect that resource for its execution state. · maxLength 253 |
status.graphSnapshot.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.graphSnapshot.lastBuildRef.uid | string | yes | — | UID of the SnapshotBuild. Match this value to distinguish a specific attempt from a replacement resource. · maxLength 128 |
status.graphSnapshot.manualRetrySequence | integer | no | — | Manual retry authority is scoped to this exact selected step and command. · format "uint64" · minimum 0 · nullable true |
status.graphSnapshot.phase | string | yes | — | enum ["WaitingForDependencies","Resolving","PreparingTables","PreparingGraph","Pending","Running","Ready","Failed","NeedsReview","Cancelling","Cancelled","Blocked"] · maxLength 2048 |
status.graphSnapshot.reservedBuildName | string | no | — | maxLength 253 · nullable true |
status.graphSnapshot.reservedBuildRequestRef | object | no | — | Exact launch recipe, retained until the child UID is acknowledged. · maxProperties 1024 · nullable true · self.sizeBytes >= 0 && self.sizeBytes <= 9007199254740991 |
status.graphSnapshot.reservedBuildRequestRef.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.graphSnapshot.reservedBuildRequestRef.mediaType | string | yes | — | Use the recorded media type to identify the artifact representation. · maxLength 2048 |
status.graphSnapshot.reservedBuildRequestRef.sizeBytes | integer | yes | — | Use the published byte count when verifying a transferred artifact. · format "int64" |
status.graphSnapshot.reservedBuildRequestRef.uri | string | yes | — | Use this location to identify the published artifact during retrieval or diagnostics. · maxLength 2048 |
status.graphSnapshot.reservedRequestDigest | string | no | — | maxLength 71 · nullable true · pattern "^sha256:[0-9a-f]{64}$" |
status.graphSnapshot.retryAfter | string | no | — | maxLength 2048 · nullable true |
status.graphSnapshot.reused | boolean | no | false | |
status.graphSnapshot.snapshotName | string | yes | — | maxLength 253 |
status.graphSnapshot.snapshotRef | object | no | — | maxProperties 1024 · nullable true |
status.graphSnapshot.snapshotRef.apiVersion | string | yes | — | maxLength 2048 |
status.graphSnapshot.snapshotRef.executionDigest | string | no | — | maxLength 71 · nullable true · pattern "^sha256:[0-9a-f]{64}$" |
status.graphSnapshot.snapshotRef.kind | string | yes | — | maxLength 2048 |
status.graphSnapshot.snapshotRef.name | string | yes | — | maxLength 253 |
status.graphSnapshot.snapshotRef.recoveryOrdinal | integer | no | — | format "int32" · nullable true |
status.graphSnapshot.snapshotRef.uid | string | yes | — | maxLength 128 |
status.lastPinMismatch | object | no | — | Retained after recovery so the last exact mismatch remains explainable. · maxProperties 1024 · nullable true |
status.lastPinMismatch.expected | string | yes | — | maxLength 2048 |
status.lastPinMismatch.field | string | yes | — | maxLength 2048 |
status.lastPinMismatch.kind | string | yes | — | maxLength 2048 |
status.lastPinMismatch.name | string | yes | — | maxLength 253 |
status.lastPinMismatch.observed | string | no | — | maxLength 2048 · nullable true |
status.observedCommandId | string | no | — | Most recent retry command acknowledged by the controller. Match it with the submitted retry identifier. · maxLength 2048 · nullable true |
status.observedCommandSequence | integer | no | 0 | Sequence of the last retry command acknowledged by the controller. Check it before submitting the next sequence. · format "uint64" · minimum 0 |
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.outputs | object | no | {} | Published output references. Use these to select a result by identity after the workload succeeds. · maxProperties 1024 |
status.outputs.graphSnapshot | object | no | — | Exact captured input; names alone never authorize graph input reuse. · maxProperties 1024 · nullable true |
status.outputs.graphSnapshot.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}$" |
status.outputs.graphSnapshot.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}$" |
status.outputs.graphSnapshot.name | string | yes | — | Workspace name of the snapshot. Check the UID as well when selecting a specific publication. · maxLength 253 |
status.outputs.graphSnapshot.uid | string | yes | — | Kubernetes UID of the published snapshot. Use it to detect a replacement with the same name. · maxLength 128 |
status.phase | string | no | — | Current stage reported by the controller. Use the conditions or failure details to diagnose why progress stopped. · enum ["WaitingForDependencies","Resolving","PreparingTables","PreparingGraph","Pending","Running","Ready","Failed","NeedsReview","Cancelling","Cancelled","Blocked",null] · maxLength 2048 · nullable true |
status.pinDiagnostic | object | no | — | Current mismatch or missing observation for a pinned resource. Check the field, expected value, and observed value. · maxProperties 1024 · nullable true |
status.pinDiagnostic.expected | string | yes | — | maxLength 2048 |
status.pinDiagnostic.field | string | yes | — | maxLength 2048 |
status.pinDiagnostic.kind | string | yes | — | maxLength 2048 |
status.pinDiagnostic.name | string | yes | — | maxLength 253 |
status.pinDiagnostic.observed | string | no | — | maxLength 2048 · nullable true |
status.resolvedPlanRef | object | no | — | Reference to the preparation plan the controller accepted. Use it when diagnosing a change in pinned inputs. · maxProperties 1024 · nullable true · self.sizeBytes >= 0 && self.sizeBytes <= 9007199254740991 |
status.resolvedPlanRef.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.resolvedPlanRef.mediaType | string | yes | — | Use the recorded media type to identify the artifact representation. · maxLength 2048 |
status.resolvedPlanRef.sizeBytes | integer | yes | — | Use the published byte count when verifying a transferred artifact. · format "int64" |
status.resolvedPlanRef.uri | string | yes | — | Use this location to identify the published artifact during retrieval or diagnostics. · maxLength 2048 |
status.tables | object | no | {} | Preparation steps keyed by graph table alias. Inspect the relevant entry when one input is blocked. · maxProperties 64 |
status.tables[key] | object | — | — | Reservation is persisted before creating the child; retry increments only this ordinal. · maxProperties 1024 |
status.tables[key].activeBuildRef | object | no | — | maxProperties 1024 · nullable true |
status.tables[key].activeBuildRef.name | string | yes | — | Name of the SnapshotBuild attempt. Inspect that resource for its execution state. · maxLength 253 |
status.tables[key].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.tables[key].activeBuildRef.uid | string | yes | — | UID of the SnapshotBuild. Match this value to distinguish a specific attempt from a replacement resource. · maxLength 128 |
status.tables[key].attempt | integer | yes | — | format "uint32" · maximum 32 · minimum 0 |
status.tables[key].diagnosticCode | string | no | — | maxLength 2048 · nullable true |
status.tables[key].lastBuildRef | object | no | — | maxProperties 1024 · nullable true |
status.tables[key].lastBuildRef.name | string | yes | — | Name of the SnapshotBuild attempt. Inspect that resource for its execution state. · maxLength 253 |
status.tables[key].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.tables[key].lastBuildRef.uid | string | yes | — | UID of the SnapshotBuild. Match this value to distinguish a specific attempt from a replacement resource. · maxLength 128 |
status.tables[key].manualRetrySequence | integer | no | — | Manual retry authority is scoped to this exact selected step and command. · format "uint64" · minimum 0 · nullable true |
status.tables[key].phase | string | yes | — | enum ["WaitingForDependencies","Resolving","PreparingTables","PreparingGraph","Pending","Running","Ready","Failed","NeedsReview","Cancelling","Cancelled","Blocked"] · maxLength 2048 |
status.tables[key].reservedBuildName | string | no | — | maxLength 253 · nullable true |
status.tables[key].reservedBuildRequestRef | object | no | — | Exact launch recipe, retained until the child UID is acknowledged. · maxProperties 1024 · nullable true · self.sizeBytes >= 0 && self.sizeBytes <= 9007199254740991 |
status.tables[key].reservedBuildRequestRef.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.tables[key].reservedBuildRequestRef.mediaType | string | yes | — | Use the recorded media type to identify the artifact representation. · maxLength 2048 |
status.tables[key].reservedBuildRequestRef.sizeBytes | integer | yes | — | Use the published byte count when verifying a transferred artifact. · format "int64" |
status.tables[key].reservedBuildRequestRef.uri | string | yes | — | Use this location to identify the published artifact during retrieval or diagnostics. · maxLength 2048 |
status.tables[key].reservedRequestDigest | string | no | — | maxLength 71 · nullable true · pattern "^sha256:[0-9a-f]{64}$" |
status.tables[key].retryAfter | string | no | — | maxLength 2048 · nullable true |
status.tables[key].reused | boolean | no | false | |
status.tables[key].snapshotName | string | yes | — | maxLength 253 |
status.tables[key].snapshotRef | object | no | — | maxProperties 1024 · nullable true |
status.tables[key].snapshotRef.apiVersion | string | yes | — | maxLength 2048 |
status.tables[key].snapshotRef.executionDigest | string | no | — | maxLength 71 · nullable true · pattern "^sha256:[0-9a-f]{64}$" |
status.tables[key].snapshotRef.kind | string | yes | — | maxLength 2048 |
status.tables[key].snapshotRef.name | string | yes | — | maxLength 253 |
status.tables[key].snapshotRef.recoveryOrdinal | integer | no | — | format "int32" · nullable true |
status.tables[key].snapshotRef.uid | string | yes | — | maxLength 128 |
Specification
Choose a graph and coverage interval. For each table alias, select a published snapshot or configure a new build.
This resource requires coverage, graphRef, tables.
control
Groups commands for a running preparation. Use it to cancel work or retry identified failed steps.
| Field | When to use it |
|---|---|
spec.control.cancelRequested | Set to true to request cancellation. Once requested, cancellation cannot be withdrawn. |
spec.control.retry | Requests a manual retry of selected failed builds. Inspect their names, UIDs, and attempt numbers before submitting. |
spec.control.retry.commandId | Assign an identifier to this retry command. Keep it for a replay of the same command. |
spec.control.retry.failedBuildRefs | Lists the exact failed attempts to retry. Include only the failures covered by this command. |
spec.control.retry.failedBuildRefs[].name | Name of the SnapshotBuild attempt. Inspect that resource for its execution state. |
spec.control.retry.failedBuildRefs[].ordinal | Attempt number for this snapshot. Compare it with the selected build when inspecting or retrying an attempt. |
spec.control.retry.failedBuildRefs[].uid | UID of the SnapshotBuild. Match this value to distinguish a specific attempt from a replacement resource. |
spec.control.retry.resourceOverrides | Set replacement compute resources for specific retries. Use a stable table alias as the key, or $graph for the graph step. |
spec.control.retry.resourceOverrides[key].limits | Set the CPU or memory ceiling for the workload. Choose limits that fit the namespace quota and allow the work to complete. |
spec.control.retry.resourceOverrides[key].requests | Set the minimum CPU and memory that the Kubernetes scheduler must reserve for the workload. |
spec.control.retry.sequence | Start the first manual retry at 1. After the controller observes a command, increment by one for the next command. |
coverage
Sets the completeness interval for the preparation's table inputs. Set it to the interval required by downstream queries.
| Field | When to use it |
|---|---|
spec.coverage.completeFrom | Supply the UTC start when you know the earliest time with complete source data. Use it to bound historical queries. |
spec.coverage.completeThrough | Supply the latest UTC time through which the source is complete. Use the upstream completeness guarantee when selecting this bound. |
execution
Sets build concurrency, compute resources, and the retry policy. Adjust these when planning a preparation for a different workload.
| Field | When to use it |
|---|---|
spec.execution.graphResources | Sets the compute resources for the graph build. Increase its memory allocation if constructing the graph requires more memory. |
spec.execution.graphResources.limits | Set the CPU or memory ceiling for the workload. Choose limits that fit the namespace quota and allow the work to complete. |
spec.execution.graphResources.requests | Set the minimum CPU and memory that the Kubernetes scheduler must reserve for the workload. |
spec.execution.maxConcurrentTableBuilds | Bounds how many table builds can run at once. Reduce it when capacity or source quotas limit parallel work. |
spec.execution.retryPolicy | Controls automatic build attempts for a preparation. Configure it when a failed step can recover on retry. |
spec.execution.retryPolicy.maxAttempts | Caps attempts per step, including the first. Set it to 1 when an automatic retry is unsuitable. |
spec.execution.tableResources | Sets the compute resources for table builds. Use these shared settings when several inputs have similar requirements. |
spec.execution.tableResources.limits | Set the CPU or memory ceiling for the workload. Choose limits that fit the namespace quota and allow the work to complete. |
spec.execution.tableResources.requests | Set the minimum CPU and memory that the Kubernetes scheduler must reserve for the workload. |
graphRef
Selects the graph whose table aliases and relations determine the inputs for preparation.
| Field | When to use it |
|---|---|
spec.graphRef.expected | Optionally pins the graph identity that you reviewed. Supply these checks when the name could resolve to a different graph or definition. |
spec.graphRef.expected.semanticDigest | Use the Graph's published semantic digest when preparation must use a particular definition. |
spec.graphRef.expected.uid | Use the Graph's Kubernetes UID when preparation must use a particular resource instance. |
spec.graphRef.name | Use the workspace name of the Graph to prepare. |
tables
Choose how to obtain a snapshot for each graph table alias. Use an existing publication or request a new build for each alias.
| Field | When to use it |
|---|---|
spec.tables[key].snapshotRef | Selects an existing TableSnapshot to reuse for this alias. Use it when the required snapshot has already been published. |
spec.tables[key].snapshotRef.expected | Pins the identity of the snapshot selected for reuse. Supply the expected values from the published snapshot. |
spec.tables[key].snapshotRef.expected.artifactDigest | Use the published artifact digest to require the same artifact bytes. |
spec.tables[key].snapshotRef.expected.dataIdentity | Copy the data identity from the expected snapshot publication when the workload must use that exact dataset. |
spec.tables[key].snapshotRef.expected.uid | Copy the snapshot’s Kubernetes UID to require the exact resource instance. |
spec.tables[key].snapshotRef.name | Use the name of the published TableSnapshot in the workspace. |
spec.tables[key].snapshotTemplate | Requests a new snapshot for this alias. An empty template uses the preparation's table-build settings. |
spec.tables[key].snapshotTemplate.resources | Overrides the shared compute resources for this alias. Use a larger allocation for an unusually large table. |
spec.tables[key].snapshotTemplate.resources.limits | Set the CPU or memory ceiling for the workload. Choose limits that fit the namespace quota and allow the work to complete. |
spec.tables[key].snapshotTemplate.resources.requests | Set the minimum CPU and memory that the Kubernetes scheduler must reserve for the workload. |
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 | — | Choose a graph and coverage interval. For each table alias, select a published snapshot or configure a new build. · maxProperties 1024 · x-kubernetes-preserve-unknown-fields true |
spec.control | object | no | {"cancelRequested":false} | Groups commands for a running preparation. Use it to cancel work or retry identified failed steps. · maxProperties 1024 · x-kubernetes-preserve-unknown-fields true |
spec.control.cancelRequested | boolean | no | false | Set to true to request cancellation. Once requested, cancellation cannot be withdrawn. |
spec.control.retry | object | no | — | Requests a manual retry of selected failed builds. Inspect their names, UIDs, and attempt numbers before submitting. · maxProperties 1024 · nullable true · x-kubernetes-preserve-unknown-fields true |
spec.control.retry.commandId | string | yes | — | Assign an identifier to this retry command. Keep it for a replay of the same command. · maxLength 64 · minLength 8 |
spec.control.retry.failedBuildRefs | array | yes | — | Lists the exact failed attempts to retry. Include only the failures covered by this command. · maxItems 65 · minItems 1 |
spec.control.retry.failedBuildRefs[] | object | — | — | maxProperties 1024 · x-kubernetes-preserve-unknown-fields true |
spec.control.retry.failedBuildRefs[].name | string | yes | — | Name of the SnapshotBuild attempt. Inspect that resource for its execution state. · maxLength 253 |
spec.control.retry.failedBuildRefs[].ordinal | integer | yes | — | Attempt number for this snapshot. Compare it with the selected build when inspecting or retrying an attempt. · format "uint32" · minimum 1 |
spec.control.retry.failedBuildRefs[].uid | string | yes | — | UID of the SnapshotBuild. Match this value to distinguish a specific attempt from a replacement resource. · maxLength 128 |
spec.control.retry.resourceOverrides | object | no | — | Set replacement compute resources for specific retries. Use a stable table alias as the key, or $graph for the graph step. · maxProperties 65 · x-kubernetes-preserve-unknown-fields true |
spec.control.retry.resourceOverrides[key] | object | — | — | maxProperties 1024 · x-kubernetes-preserve-unknown-fields true |
spec.control.retry.resourceOverrides[key].limits | object | no | — | Set the CPU or memory ceiling for the workload. Choose limits that fit the namespace quota and allow the work to complete. · maxProperties 1024 · nullable true · x-kubernetes-preserve-unknown-fields true |
spec.control.retry.resourceOverrides[key].limits[key] | string | — | — | maxLength 16384 |
spec.control.retry.resourceOverrides[key].requests | object | yes | — | Set the minimum CPU and memory that the Kubernetes scheduler must reserve for the workload. · maxProperties 1024 · x-kubernetes-preserve-unknown-fields true |
spec.control.retry.resourceOverrides[key].requests[key] | string | — | — | maxLength 16384 |
spec.control.retry.sequence | integer | yes | — | Start the first manual retry at 1. After the controller observes a command, increment by one for the next command. · format "uint64" · maximum 9007199254740991 · minimum 1 |
spec.coverage | object | yes | — | Sets the completeness interval for the preparation's table inputs. Set it to the interval required by downstream queries. · maxProperties 1024 · x-kubernetes-preserve-unknown-fields true · self.completeThrough.endsWith('Z') && timestamp(self.completeThrough) == timestamp(self.completeThrough) · !has(self.completeFrom) || (self.completeFrom.endsWith('Z') && timestamp(self.completeFrom) < timestamp(self.completeThrough)) |
spec.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.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.execution | object | no | {"maxConcurrentTableBuilds":4,"retryPolicy":{"maxAttempts":3}} | Sets build concurrency, compute resources, and the retry policy. Adjust these when planning a preparation for a different workload. · maxProperties 1024 · x-kubernetes-preserve-unknown-fields true |
spec.execution.graphResources | object | no | — | Sets the compute resources for the graph build. Increase its memory allocation if constructing the graph requires more memory. · maxProperties 1024 · nullable true · x-kubernetes-preserve-unknown-fields true |
spec.execution.graphResources.limits | object | no | — | Set the CPU or memory ceiling for the workload. Choose limits that fit the namespace quota and allow the work to complete. · maxProperties 1024 · nullable true · x-kubernetes-preserve-unknown-fields true |
spec.execution.graphResources.limits[key] | string | — | — | maxLength 16384 |
spec.execution.graphResources.requests | object | yes | — | Set the minimum CPU and memory that the Kubernetes scheduler must reserve for the workload. · maxProperties 1024 · x-kubernetes-preserve-unknown-fields true |
spec.execution.graphResources.requests[key] | string | — | — | maxLength 16384 |
spec.execution.maxConcurrentTableBuilds | integer | no | 4 | Bounds how many table builds can run at once. Reduce it when capacity or source quotas limit parallel work. · format "uint32" · maximum 64 · minimum 1 |
spec.execution.retryPolicy | object | no | {"maxAttempts":3} | Controls automatic build attempts for a preparation. Configure it when a failed step can recover on retry. · maxProperties 1024 · x-kubernetes-preserve-unknown-fields true |
spec.execution.retryPolicy.maxAttempts | integer | no | 3 | Caps attempts per step, including the first. Set it to 1 when an automatic retry is unsuitable. · format "uint32" · maximum 32 · minimum 1 |
spec.execution.tableResources | object | no | — | Sets the compute resources for table builds. Use these shared settings when several inputs have similar requirements. · maxProperties 1024 · nullable true · x-kubernetes-preserve-unknown-fields true |
spec.execution.tableResources.limits | object | no | — | Set the CPU or memory ceiling for the workload. Choose limits that fit the namespace quota and allow the work to complete. · maxProperties 1024 · nullable true · x-kubernetes-preserve-unknown-fields true |
spec.execution.tableResources.limits[key] | string | — | — | maxLength 16384 |
spec.execution.tableResources.requests | object | yes | — | Set the minimum CPU and memory that the Kubernetes scheduler must reserve for the workload. · maxProperties 1024 · x-kubernetes-preserve-unknown-fields true |
spec.execution.tableResources.requests[key] | string | — | — | maxLength 16384 |
spec.graphRef | object | yes | — | Selects the graph whose table aliases and relations determine the inputs for preparation. · maxProperties 1024 · x-kubernetes-preserve-unknown-fields true |
spec.graphRef.expected | object | no | — | Optionally pins the graph identity that you reviewed. Supply these checks when the name could resolve to a different graph or definition. · maxProperties 1024 · nullable true · x-kubernetes-preserve-unknown-fields true |
spec.graphRef.expected.semanticDigest | string | no | — | Use the Graph's published semantic digest when preparation must use a particular definition. · maxLength 71 · nullable true · pattern "^sha256:[0-9a-f]{64}$" |
spec.graphRef.expected.uid | string | no | — | Use the Graph's Kubernetes UID when preparation must use a particular resource instance. · maxLength 128 · minLength 1 · nullable true |
spec.graphRef.name | string | yes | — | Use the workspace name of the Graph to prepare. · maxLength 253 · minLength 1 |
spec.tables | object | yes | — | Choose how to obtain a snapshot for each graph table alias. Use an existing publication or request a new build for each alias. · maxProperties 64 · minProperties 1 · x-kubernetes-map-type "granular" · x-kubernetes-preserve-unknown-fields true |
spec.tables[key] | object | — | — | maxProperties 1024 · x-kubernetes-preserve-unknown-fields true · has(self.snapshotRef) != has(self.snapshotTemplate) · !has(self.snapshotRef) || self.snapshotRef != null · !has(self.snapshotTemplate) || self.snapshotTemplate != null |
spec.tables[key].snapshotRef | object | no | — | Selects an existing TableSnapshot to reuse for this alias. Use it when the required snapshot has already been published. · maxProperties 1024 · nullable true · x-kubernetes-preserve-unknown-fields true |
spec.tables[key].snapshotRef.expected | object | no | — | Pins the identity of the snapshot selected for reuse. Supply the expected values from the published snapshot. · maxProperties 1024 · nullable true · x-kubernetes-preserve-unknown-fields true · has(self.artifactDigest) == has(self.dataIdentity) |
spec.tables[key].snapshotRef.expected.artifactDigest | string | no | — | Use the published artifact digest to require the same artifact bytes. · maxLength 71 · nullable true · pattern "^sha256:[0-9a-f]{64}$" |
spec.tables[key].snapshotRef.expected.dataIdentity | string | no | — | Copy the data identity from the expected snapshot publication when the workload must use that exact dataset. · maxLength 71 · nullable true · pattern "^sha256:[0-9a-f]{64}$" |
spec.tables[key].snapshotRef.expected.uid | string | no | — | Copy the snapshot’s Kubernetes UID to require the exact resource instance. · maxLength 128 · minLength 1 · nullable true |
spec.tables[key].snapshotRef.name | string | yes | — | Use the name of the published TableSnapshot in the workspace. · maxLength 253 · minLength 1 |
spec.tables[key].snapshotTemplate | object | no | — | Requests a new snapshot for this alias. An empty template uses the preparation's table-build settings. · maxProperties 1024 · nullable true · x-kubernetes-preserve-unknown-fields true |
spec.tables[key].snapshotTemplate.resources | object | no | — | Overrides the shared compute resources for this alias. Use a larger allocation for an unusually large table. · maxProperties 1024 · nullable true · x-kubernetes-preserve-unknown-fields true |
spec.tables[key].snapshotTemplate.resources.limits | object | no | — | Set the CPU or memory ceiling for the workload. Choose limits that fit the namespace quota and allow the work to complete. · maxProperties 1024 · nullable true · x-kubernetes-preserve-unknown-fields true |
spec.tables[key].snapshotTemplate.resources.limits[key] | string | — | — | maxLength 16384 |
spec.tables[key].snapshotTemplate.resources.requests | object | yes | — | Set the minimum CPU and memory that the Kubernetes scheduler must reserve for the workload. · maxProperties 1024 · x-kubernetes-preserve-unknown-fields true |
spec.tables[key].snapshotTemplate.resources.requests[key] | string | — | — | maxLength 16384 |
The validation schema matches prokrust-crds 0.23.0-rc.1.