With version 0.11.3, the Polycrate API addresses a critical bug in the K8sCluster filter that impacted operator communication.
The Problem
The K8sClusterFilter only accepted workspace names for the workspace query parameter. However, the Polycrate Operator sends workspace UUIDs.
Consequence: The operator attempted to create a new cluster on each reconcile, even though one already existed:
IntegrityError: duplicate key value violates unique constraint "unique_k8s_cluster_per_workspace"
The Solution
The new filter_workspace() method automatically detects whether the value is a UUID or a name:
- UUID → exact match on
workspace__id - Name →
icontainsonworkspace__name
Prerequisite for CLI 0.29.4
This API update is a prerequisite for Polycrate CLI 0.29.4. The operator requires this change for correct cluster detection.
Update Now
# In polycrate-api Workspace
polycrate run docker build
polycrate run docker push
polycrate run polycrate-api install
Polycrate API is the backend for the Polycrate CLI and enables centralized multi-cluster management. Learn more →