CatalogService.GetProkrustPolicy
Read the named ProkrustPolicy in one workspace. Compare generation with status.observedGeneration when interpreting a controller result. The response example uses synthetic image digests and identities. Use the values resolved in your installation.
CatalogService · Installed Web API. Use the HTTPS origin of your Prokrust installation and credentials authorized for this operation.
POST /prokrust.api.v1alpha1.CatalogService/GetProkrustPolicy
Request headers
| Header | Value and purpose |
|---|---|
Authorization | Use Bearer $PROKRUST_TOKEN for a Kubernetes caller authorized for this operation. Browser calls use the signed-in session. |
Content-Type | application/json selects ProtoJSON for this unary request. |
Connect-Protocol-Version | 1 selects version 1 of the Connect protocol. |
Request fields
| JSON field | Type | Meaning |
|---|---|---|
namespace | string | Kubernetes workspace namespace for the operation. Use the namespace in which the selected resource lives. Example: "analytics". |
name | string | Name of the object to read. For ArtifactStore, BallistaCluster, and ProkrustPolicy use default. Example: "events". |
Example request
Set PROKRUST_URL to the installation’s HTTPS origin and PROKRUST_TOKEN to your caller token. Replace the sample values with values from your installation.
curl --fail-with-body --silent --show-error \
-H "Authorization: Bearer $PROKRUST_TOKEN" \
-H 'Content-Type: application/json' \
-H 'Connect-Protocol-Version: 1' \
"$PROKRUST_URL/prokrust.api.v1alpha1.CatalogService/GetProkrustPolicy" \
--data-binary @- <<'JSON'
{
"namespace": "analytics",
"name": "default"
}
JSON
Response fields
| JSON field | Type | Meaning |
|---|---|---|
namespace | string | Kubernetes workspace namespace for the operation. Use the namespace in which the selected resource lives. |
name | string | Kubernetes metadata.name. Combine it with namespace and UID when acting on an existing object. |
uid | string | Kubernetes metadata.uid identifying this particular object. Read it from the resource before targeting an existing instance. |
resourceVersion | string | Opaque Kubernetes resource version. Copy the value from a current read. Preserve it as a string. |
generation | int64 | Kubernetes spec generation. Compare it with status.observedGeneration to check whether the controller processed this spec. |
spec | JSON object | Complete Kubernetes spec object for this resource kind. Use the corresponding CRD field reference. |
status | JSON object | Controller observations from the CRD status, when published. Compare observedGeneration with generation before interpreting conditions. |
labels | map from string to string | Kubernetes labels included in the resource projection. Use them to identify release or application ownership. |
annotations | map from string to string | Kubernetes annotation values included in the projection. Check the owning tool’s annotations before changing a managed object. |
creationTimestamp | string | Kubernetes creation time in RFC 3339 format. |
deletionTimestamp | string | Accepted deletion remains pending until the resource disappears. |
Example response
{
"namespace": "analytics",
"name": "default",
"uid": "1f54ece6-5b91-5946-b57f-3702da6f17bd",
"resourceVersion": "42",
"generation": "1",
"creationTimestamp": "2026-05-12T10:00:00Z",
"spec": {
"authorization": {
"connectionProfile": "seaweedfs",
"connections": {
"rules": []
}
},
"admission": {
"graph": {
"nodesMax": 1000,
"edgesMax": 2000,
"shards": {
"objectBytesMax": 67108864,
"arrowBufferBytesMax": 67108864,
"nodeRowsMax": 1000,
"destinationNodesMax": 1000,
"edgesMax": 2000
}
},
"training": {
"model": {
"hiddenDimensionMin": 1,
"hiddenDimensionMax": 256,
"layersMin": 1,
"layersMax": 8,
"fanoutPerLayerMin": 1,
"fanoutPerLayerMax": 64,
"batchSizeMin": 1,
"batchSizeMax": 256,
"maxEpochsMin": 1,
"maxEpochsMax": 100,
"earlyStoppingPatienceMin": 1,
"earlyStoppingPatienceMax": 20,
"dropoutMin": 0,
"dropoutMaxExclusive": 1,
"learningRateMinExclusive": 0,
"learningRateMax": 1
},
"maxNullLabelRatio": 0
},
"prediction": {
"outputPartitionsMin": 1,
"outputPartitionsMax": 64
},
"serving": {
"minReplicas": 1,
"maxReplicas": 2,
"maxBatchSize": 256,
"maxTimeoutSeconds": 30
}
},
"execution": {
"contractVersion": "prokrust.policy/v3",
"release": {
"mode": "Qualification",
"lock": {
"uri": "s3://analytics-artifacts/release.json",
"digest": "sha256:4c4ed1afbfdaa1e4c3bf7bbb82d730cecb7e384da91eea4f3cc093fd545524d6"
}
},
"identities": {
"artifactStoreProbe": "prokrust-artifact-store-probe",
"artifactWriter": "prokrust-artifact-writer",
"ballistaClusterController": "prokrust-ballista-cluster-controller",
"ballistaHealthProbe": "prokrust-ballista-health-probe",
"batchPredictor": "prokrust-batch-predictor",
"connectionProbe": "prokrust-connection-probe",
"controllerManager": "prokrust-controller-manager",
"graphMaterializer": "prokrust-graph-materializer",
"kserveRuntime": "prokrust-kserve-runtime",
"predictionMaterializer": "prokrust-prediction-materializer",
"tableMaterializer": "prokrust-table-materializer",
"tableStaging": "prokrust-table-staging",
"trainer": "prokrust-trainer",
"trainingMaterializer": "prokrust-training-materializer",
"workflowExecutor": "prokrust-workflow-executor"
},
"images": {
"operator": "registry.example.org/prokrust/operator@sha256:06e55b633481f7bb072957eabcf110c972e86691c3cfedabe088024bffe42f23",
"dataJob": "registry.example.org/prokrust/data-job@sha256:5b341b40565ace30da9461f2a32430ec79f101f1289fccecfb8d132cdf51338f",
"trainer": "registry.example.org/prokrust/trainer@sha256:06ea17a8981d25b0315ff17bd1ebad3d95c15a3f8b764eaadb93612d9b61a54e",
"batchPredictor": "registry.example.org/prokrust/batch-predictor@sha256:6824b071f29e418004eca4057dbc64ada241abfdb0850873f9568b32d7904fb9",
"modelServer": "registry.example.org/prokrust/model-server@sha256:880827c4ec2457db331b0172c47a85dd87b845cf71b2b11e453cd81d847399cd",
"ballistaScheduler": "registry.example.org/prokrust/ballista-scheduler@sha256:122df0051c9bdd9b1b3d1a7966f599d9e54e58eb672f17a17c79cbce9c6d46c2",
"ballistaExecutor": "registry.example.org/prokrust/ballista-executor@sha256:7ed65b0c95ea5ce8fc43e6d443fce976ef0d0c8c80a52540addeab943e28021a"
},
"programs": {
"tableSnapshot": {
"programId": "prokrust.table-snapshot",
"version": "2"
},
"graphSnapshot": {
"programId": "prokrust.graph-snapshot",
"version": "1"
},
"trainingRun": {
"programId": "prokrust.training-run",
"version": "1"
},
"predictionRun": {
"programId": "prokrust.prediction-run",
"version": "1"
}
},
"serving": {
"runtime": {
"name": "prokrust",
"specDigest": "sha256:4c4ed1afbfdaa1e4c3bf7bbb82d730cecb7e384da91eea4f3cc093fd545524d6"
}
},
"ballista": {
"clusterName": "default",
"release": "54.1.0",
"upstreamCommit": "cccccccccccccccccccccccccccccccccccccccc",
"configurationDigest": "sha256:4c4ed1afbfdaa1e4c3bf7bbb82d730cecb7e384da91eea4f3cc093fd545524d6",
"crateVersions": {
"ballista": "54.1.0",
"datafusion": "54.1.0",
"arrow": "58.3.0",
"parquet": "58.3.0",
"objectStore": "0.13.2"
},
"serviceAccounts": {
"scheduler": "prokrust-ballista-scheduler",
"executor": "prokrust-ballista-executor"
},
"ports": {
"workflowGrpc": 50050,
"workflowRest": 50050,
"executorFlight": 50051,
"executorShuffle": 50052
},
"maxConcurrentProducers": 1
},
"controller": {}
}
}
}
Kubernetes reference
See the ProkrustPolicy reference for the resource configuration and controller observations.