Graph
A Graph defines the tables and relationships that a query or graph snapshot can use.
data.prokrust.ai/v1beta1 · Namespaced · graphs
Controller status
Conditions
Compare each condition's observedGeneration with metadata.generation. If the condition is absent or reports an older generation, its current result is still pending.
| Condition | What it tells you |
|---|---|
Accepted | Reports whether the controller accepted the graph specification for this generation. If a table is missing, the controller can report True before it checks relation columns and their types against that table. |
DependenciesReady | Reports whether the controller resolved the tables and publication dependencies for this graph. |
Ready | Reports whether the controller published the graph definition artifact for this generation. Read status.artifact for its location. Inspect a GraphSnapshot for materialized graph data. |
When a table is missing
The graph references a table named orders. The controller reports Accepted=True for the definition. It reports Ready=False because it cannot publish this generation. The DependenciesReady message identifies the missing table.
status:
observedGeneration: 3
phase: Blocked
conditions:
- type: DependenciesReady
status: "False"
reason: DependencyNotReady
message: Table orders is absent or not ready.
observedGeneration: 3
Check tableRef.name under spec.tables. If orders exists in the graph’s workspace, inspect its Table conditions. When the dependency recovers, look for Ready=True at the graph’s current generation.
Graph condition results and reasons
Accepted
| Status and reason | What to check |
|---|---|
True / ValidSpec | The controller accepted the specification for this pass. Check DependenciesReady and Ready before using the graph. |
False / InvalidSpec | The graph definition failed validation. Read the GRAPH_INVALID diagnostic and correct the table aliases, relation keys, or types it identifies. |
Unknown / NotEvaluated | Reconciliation stopped before the controller recorded a validation result. Use the diagnostic code and message to fix the underlying problem. |
DependenciesReady
| Status and reason | What to check |
|---|---|
True / Ready | The controller resolved the required dependencies. Check Ready to see whether the definition was published. |
False / DependencyNotReady | A required table, policy, or store is missing or unready. Follow the resource named in the message and check its status. |
Unknown / NotEvaluated | The graph specification is invalid. Correct the validation diagnostic before checking the dependencies again. |
False / ArtifactAuthorizationDenied | The artifact identity is missing an authorized binding. Check the policy binding for the controller identity, provider, and artifact connection named in the diagnostic. |
Unknown / ReconciliationFailed | The controller could not finish checking dependencies. Inspect the graph diagnostic for the failed Kubernetes read, artifact read, or configuration check. |
Ready
| Status and reason | What to check |
|---|---|
True / Ready | The current definition is published. Use status.artifact and status.semanticDigest to identify it. |
False / Blocked | Publication is waiting for a dependency. Use the condition message to find the unavailable table, policy, or store. |
False / Invalid | The current definition cannot be published. Use status.diagnostics to find the invalid part of spec. |
False / ArtifactAuthorizationDenied | The current definition cannot be qualified or published with this identity. Correct the artifact authorization binding reported in status.diagnostics. |
False / PublicationFailed | Validation completed but the artifact could not be published. Inspect status.diagnostics for a storage or publication error and check the ArtifactStore. |
False / ReconciliationFailed | Reconciliation failed before publication. Read the diagnostic and check the API, storage, or configuration it identifies. |
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.artifact | References the published graph definition JSON for a ready generation. A GraphSnapshot publishes the materialized graph data separately. |
status.diagnostics | Details of validation or reconciliation errors. Inspect the code, message, and field to locate the cause of an unsuccessful generation. |
status.lastReconcileTime | Time of the last reconciliation, when reported. Use observedGeneration to check freshness. |
status.observedGeneration | Graph generation that the operator evaluated. Compare it with metadata.generation before using the reported result. |
status.phase | Overall state of the graph definition. Inspect conditions and diagnostics to learn why publication is blocked or the definition is invalid. |
status.previousReady | Retains the generation, digest, and artifact of the last successful definition when available. Check its generation before using it after a failed reconciliation. |
status.semanticDigest | When the graph is ready, identifies the definition with its resolved table revisions. Use the digest with the generation when checking the graph inputs of a snapshot. |
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 | — | Reports validation, dependency resolution, and publication of the graph definition. · maxProperties 1024 · nullable true |
status.artifact | object | no | — | References the published graph definition JSON for a ready generation. A GraphSnapshot publishes the materialized graph data separately. · maxProperties 1024 · nullable true · self.sizeBytes >= 0 && self.sizeBytes <= 9007199254740991 |
status.artifact.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.artifact.mediaType | string | yes | — | Use the recorded media type to identify the artifact representation. · maxLength 2048 |
status.artifact.sizeBytes | integer | yes | — | Use the published byte count when verifying a transferred artifact. · format "int64" |
status.artifact.uri | string | yes | — | Use this location to identify the published artifact during retrieval or diagnostics. · maxLength 2048 |
status.conditions | array | no | — | Compare each condition's observedGeneration with metadata.generation. If the condition is absent or reports an older generation, its current result is still pending. · 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.diagnostics | array | no | — | Details of validation or reconciliation errors. Inspect the code, message, and field to locate the cause of an unsuccessful generation. · 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.lastReconcileTime | string | no | — | Time of the last reconciliation, when reported. Use observedGeneration to check freshness. · maxLength 2048 · nullable true |
status.observedGeneration | integer | no | — | Graph generation that the operator evaluated. Compare it with metadata.generation before using the reported result. · format "int64" · nullable true |
status.phase | string | no | — | Overall state of the graph definition. Inspect conditions and diagnostics to learn why publication is blocked or the definition is invalid. · enum ["Pending","Validating","Blocked","Publishing","Ready","Invalid","Degraded",null] · maxLength 2048 · nullable true |
status.previousReady | object | no | — | Retains the generation, digest, and artifact of the last successful definition when available. Check its generation before using it after a failed reconciliation. · maxProperties 1024 · nullable true |
status.previousReady.artifact | object | no | — | maxProperties 1024 · nullable true · self.sizeBytes >= 0 && self.sizeBytes <= 9007199254740991 |
status.previousReady.artifact.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.previousReady.artifact.mediaType | string | yes | — | Use the recorded media type to identify the artifact representation. · maxLength 2048 |
status.previousReady.artifact.sizeBytes | integer | yes | — | Use the published byte count when verifying a transferred artifact. · format "int64" |
status.previousReady.artifact.uri | string | yes | — | Use this location to identify the published artifact during retrieval or diagnostics. · maxLength 2048 |
status.previousReady.generation | integer | yes | — | format "int64" |
status.previousReady.semanticDigest | string | yes | — | maxLength 71 · pattern "^sha256:[0-9a-f]{64}$" |
status.semanticDigest | string | no | — | When the graph is ready, identifies the definition with its resolved table revisions. Use the digest with the generation when checking the graph inputs of a snapshot. · maxLength 71 · nullable true · pattern "^sha256:[0-9a-f]{64}$" |
Specification
Selects workspace Tables by alias and defines the relations between their rows.
This resource requires relations, tables.
relations
Defines the links between tables. Add a relation when one table holds an identifier for a row in another, such as an order's customer identifier.
| Field | When to use it |
|---|---|
spec.relations[].destination | Table alias and primary-key column to match against the source value. For an order-to-customer relation, select the primary key of the customers table. |
spec.relations[].destination.column | Name of an Id column in the aliased table. Use its foreign key at the source and its primary key at the destination. Both columns must have the same physical type. |
spec.relations[].destination.table | Alias from spec.tables for this end of the relation. |
spec.relations[].missingDestination | Use Error to fail the graph snapshot build on an unmatched non-null key. Use Warning to allow the build to continue and report the missing matches. |
spec.relations[].name | Unique relation name within the graph. Use different names for different roles, such as billing customer and delivery customer. |
spec.relations[].source | Table alias and foreign-key column that refer to a destination row. For an order-to-customer relation, select the customer identifier in the orders table. |
spec.relations[].source.column | Name of an Id column in the aliased table. Use its foreign key at the source and its primary key at the destination. Both columns must have the same physical type. |
spec.relations[].source.table | Alias from spec.tables for this end of the relation. |
tables
Maps graph-local aliases to workspace Tables. Use these aliases in relation endpoints and queries.
| Field | When to use it |
|---|---|
spec.tables[key].tableRef | Selects the Table for this alias. Set name to the Table's Kubernetes name. |
spec.tables[key].tableRef.name | Kubernetes name of the referenced object in the same namespace. Use its metadata.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 | — | Selects workspace Tables by alias and defines the relations between their rows. · maxProperties 1024 · self.relations.all(r, r.source.column != '' && r.destination.column != '' && r.source.table in self.tables && r.destination.table in self.tables) |
spec.relations | array | yes | — | Defines the links between tables. Add a relation when one table holds an identifier for a row in another, such as an order's customer identifier. · maxItems 256 · x-kubernetes-list-map-keys ["name"] · x-kubernetes-list-type "map" |
spec.relations[] | object | — | — | A directed relationship between rows in two graph tables. · maxProperties 1024 |
spec.relations[].destination | object | yes | — | Table alias and primary-key column to match against the source value. For an order-to-customer relation, select the primary key of the customers table. · maxProperties 1024 |
spec.relations[].destination.column | string | yes | — | Name of an Id column in the aliased table. Use its foreign key at the source and its primary key at the destination. Both columns must have the same physical type. · maxLength 16384 |
spec.relations[].destination.table | string | yes | — | Alias from spec.tables for this end of the relation. · maxLength 16384 |
spec.relations[].missingDestination | string | yes | — | Use Error to fail the graph snapshot build on an unmatched non-null key. Use Warning to allow the build to continue and report the missing matches. · enum ["Warning","Error"] · maxLength 16384 |
spec.relations[].name | string | yes | — | Unique relation name within the graph. Use different names for different roles, such as billing customer and delivery customer. · maxLength 253 |
spec.relations[].source | object | yes | — | Table alias and foreign-key column that refer to a destination row. For an order-to-customer relation, select the customer identifier in the orders table. · maxProperties 1024 |
spec.relations[].source.column | string | yes | — | Name of an Id column in the aliased table. Use its foreign key at the source and its primary key at the destination. Both columns must have the same physical type. · maxLength 16384 |
spec.relations[].source.table | string | yes | — | Alias from spec.tables for this end of the relation. · maxLength 16384 |
spec.tables | object | yes | — | Maps graph-local aliases to workspace Tables. Use these aliases in relation endpoints and queries. · maxProperties 1024 |
spec.tables[key] | object | — | — | Associates one graph-local alias with a Table in the graph's workspace. · maxProperties 1024 |
spec.tables[key].tableRef | object | yes | — | Selects the Table for this alias. Set name to the Table's Kubernetes name. · maxProperties 1024 |
spec.tables[key].tableRef.name | string | yes | — | Kubernetes name of the referenced object in the same namespace. Use its metadata.name. · maxLength 253 |
The validation schema matches prokrust-crds 0.23.0-rc.1.