Polycrate CLI 0.29.3 released: SSH-Agent Auto-Mount, Git Branch-Aware & Operator Fixes
ayedo Redaktion 2 Minuten Lesezeit

Polycrate CLI 0.29.3 released: SSH-Agent Auto-Mount, Git Branch-Aware & Operator Fixes

Polycrate CLI 0.29.3 introduces Host SSH-Agent Auto-Mount, branch-aware Git operations, and operator fixes for accepted_status_codes and wildcard hostnames.
polycrate kubernetes devops bugfix operator git ssh

With version 0.29.3, Polycrate introduces Host SSH-Agent Auto-Mount for seamless Git operations within the container, branch-aware Git commands, and important operator fixes.

Action Run Output Capture

Container output was not being sent to the Polycrate API with --docker-native (default since 0.28.0). The stdout field in ActionRun objects was empty.

Fix: NativeDockerBackend.Run() now uses io.MultiWriter to display and capture output simultaneously.

Block Config Submission

The block.poly configuration was not correctly submitted to the API, resulting in missing block configurations in the API.

Fix: Explicit conversion of the YAML map to a JSON-compatible format before API submission.

Git Branch-Aware Operations

All Git operations now use the currently checked-out branch instead of the hardcoded main:

# On branch 'staging'
git checkout staging
polycrate git pull   # Pulls from origin/staging (not origin/main!)
polycrate git sync   # Syncs with origin/staging

The warning for polycrate run now shows the correct branch:

Workspace is on branch 'staging' at commit abc1234 which is 3 commits behind origin/staging

Block Push Spinner

polycrate block push now displays an animated spinner during upload with success/failure indicator:

# On success
✓ Pushing block cargo.ayedo.cloud/ayedo/k8s/my-block:1.0.0

# On failure
✗ Pushing block cargo.ayedo.cloud/ayedo/k8s/my-block:1.0.0: access denied

Operator: K8sApp Secret Name Length

For blocks with long names (>40 characters), the K8sApp CR creation failed due to the 63-character limit for Kubernetes labels (RFC 1123).

Fix: Automatic truncation with hash for long secret names.

Operator: Wildcard Hostname Handling

Ingress resources with wildcard hostnames (*.example.com) led to invalid Endpoint CR names.

Fix: *.example.com is now converted to wildcard-example-com.

Operator: Accepted Status Codes

Changes to accepted_status_codes in the API were not applied to existing endpoints. This caused the operator agent to report endpoints as DOWN, even though the status code (e.g., 401) was configured as accepted in the API.

Fix: API changes to accepted_status_codes are now correctly applied to the Kubernetes Endpoint CR.

Host SSH-Agent Auto-Mount

The SSH agent running on the host is now automatically mounted into the container if SSH_AUTH_SOCK is set. This allows Git operations in the container to work without manual mount configuration.

Full Release Notes

polycrate-operator Block

The polycrate-operator block has been updated to version 0.3.8:

polycrate pull cargo.ayedo.cloud/ayedo/k8s/polycrate-operator
polycrate run polycrate-operator install

Update Now

polycrate update 0.29.3

Or download the binaries directly from PolyHub.


Polycrate is ayedo’s Infrastructure-as-Code tool for declarative multi-cluster management. Learn more →

Ähnliche Artikel