Polycrate API 0.11.3 released: Workspace UUID Filter Fix
ayedo Redaktion 1 Minute Lesezeit

Polycrate API 0.11.3 released: Workspace UUID Filter Fix

Polycrate API 0.11.3 fixes the K8sCluster Workspace filter: UUIDs are now correctly recognized. Prerequisite for Polycrate CLI 0.29.4.
polycrate kubernetes devops bugfix api

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
  • Nameicontains on workspace__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.

Full Release Notes

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 →

Ähnliche Artikel