Skip to main content

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.

ConditionWhat it tells you
AcceptedReports 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.
DependenciesReadyReports whether the controller resolved the tables and publication dependencies for this graph.
ReadyReports 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 reasonWhat to check
True / ValidSpecThe controller accepted the specification for this pass. Check DependenciesReady and Ready before using the graph.
False / InvalidSpecThe graph definition failed validation. Read the GRAPH_INVALID diagnostic and correct the table aliases, relation keys, or types it identifies.
Unknown / NotEvaluatedReconciliation stopped before the controller recorded a validation result. Use the diagnostic code and message to fix the underlying problem.

DependenciesReady​

Status and reasonWhat to check
True / ReadyThe controller resolved the required dependencies. Check Ready to see whether the definition was published.
False / DependencyNotReadyA required table, policy, or store is missing or unready. Follow the resource named in the message and check its status.
Unknown / NotEvaluatedThe graph specification is invalid. Correct the validation diagnostic before checking the dependencies again.
False / ArtifactAuthorizationDeniedThe artifact identity is missing an authorized binding. Check the policy binding for the controller identity, provider, and artifact connection named in the diagnostic.
Unknown / ReconciliationFailedThe controller could not finish checking dependencies. Inspect the graph diagnostic for the failed Kubernetes read, artifact read, or configuration check.

Ready​

Status and reasonWhat to check
True / ReadyThe current definition is published. Use status.artifact and status.semanticDigest to identify it.
False / BlockedPublication is waiting for a dependency. Use the condition message to find the unavailable table, policy, or store.
False / InvalidThe current definition cannot be published. Use status.diagnostics to find the invalid part of spec.
False / ArtifactAuthorizationDeniedThe current definition cannot be qualified or published with this identity. Correct the artifact authorization binding reported in status.diagnostics.
False / PublicationFailedValidation completed but the artifact could not be published. Inspect status.diagnostics for a storage or publication error and check the ArtifactStore.
False / ReconciliationFailedReconciliation failed before publication. Read the diagnostic and check the API, storage, or configuration it identifies.
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.artifactReferences the published graph definition JSON for a ready generation. A GraphSnapshot publishes the materialized graph data separately.
status.diagnosticsDetails of validation or reconciliation errors. Inspect the code, message, and field to locate the cause of an unsuccessful generation.
status.lastReconcileTimeTime of the last reconciliation, when reported. Use observedGeneration to check freshness.
status.observedGenerationGraph generation that the operator evaluated. Compare it with metadata.generation before using the reported result.
status.phaseOverall state of the graph definition. Inspect conditions and diagnostics to learn why publication is blocked or the definition is invalid.
status.previousReadyRetains the generation, digest, and artifact of the last successful definition when available. Check its generation before using it after a failed reconciliation.
status.semanticDigestWhen 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.

FieldTypeRequiredDefaultSchema constraints and descriptions
statusobjectno—Reports validation, dependency resolution, and publication of the graph definition. · maxProperties 1024 · nullable true
status.artifactobjectno—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.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.artifact.mediaTypestringyes—Use the recorded media type to identify the artifact representation. · maxLength 2048
status.artifact.sizeBytesintegeryes—Use the published byte count when verifying a transferred artifact. · format "int64"
status.artifact.uristringyes—Use this location to identify the published artifact during retrieval or diagnostics. · maxLength 2048
status.conditionsarrayno—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[].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.diagnosticsarrayno—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[].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.lastReconcileTimestringno—Time of the last reconciliation, when reported. Use observedGeneration to check freshness. · maxLength 2048 · nullable true
status.observedGenerationintegerno—Graph generation that the operator evaluated. Compare it with metadata.generation before using the reported result. · format "int64" · nullable true
status.phasestringno—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.previousReadyobjectno—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.artifactobjectno—maxProperties 1024 · nullable true · self.sizeBytes >= 0 && self.sizeBytes <= 9007199254740991
status.previousReady.artifact.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.previousReady.artifact.mediaTypestringyes—Use the recorded media type to identify the artifact representation. · maxLength 2048
status.previousReady.artifact.sizeBytesintegeryes—Use the published byte count when verifying a transferred artifact. · format "int64"
status.previousReady.artifact.uristringyes—Use this location to identify the published artifact during retrieval or diagnostics. · maxLength 2048
status.previousReady.generationintegeryes—format "int64"
status.previousReady.semanticDigeststringyes—maxLength 71 · pattern "^sha256:[0-9a-f]{64}$"
status.semanticDigeststringno—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.

FieldWhen to use it
spec.relations[].destinationTable 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.columnName 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.tableAlias from spec.tables for this end of the relation.
spec.relations[].missingDestinationUse 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[].nameUnique relation name within the graph. Use different names for different roles, such as billing customer and delivery customer.
spec.relations[].sourceTable 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.columnName 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.tableAlias 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.

FieldWhen to use it
spec.tables[key].tableRefSelects the Table for this alias. Set name to the Table's Kubernetes name.
spec.tables[key].tableRef.nameKubernetes 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.

FieldTypeRequiredDefaultSchema constraints and descriptions
specobjectyes—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.relationsarrayyes—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[].destinationobjectyes—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.columnstringyes—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.tablestringyes—Alias from spec.tables for this end of the relation. · maxLength 16384
spec.relations[].missingDestinationstringyes—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[].namestringyes—Unique relation name within the graph. Use different names for different roles, such as billing customer and delivery customer. · maxLength 253
spec.relations[].sourceobjectyes—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.columnstringyes—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.tablestringyes—Alias from spec.tables for this end of the relation. · maxLength 16384
spec.tablesobjectyes—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].tableRefobjectyes—Selects the Table for this alias. Set name to the Table's Kubernetes name. · maxProperties 1024
spec.tables[key].tableRef.namestringyes—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.