Skip to main content
← Back to list
01Issue
FeatureShippedExtensionsTeam
Assigneesstack72

Relationships

#1315 Add @swamp/kubernetes/statefulset model type

Opened by jeremy · 7/21/2026· Shipped 7/31/2026

The @swamp/kubernetes extension has 15 model types covering pods, deployments, services, RBAC, storage, networking, autoscaling, batch jobs, and more — but no StatefulSet model.

StatefulSets are a core Kubernetes workload type used for databases, message queues, and any workload needing stable network identity or persistent storage. Without a statefulset model, operators cannot list, get, scale, or delete StatefulSets through swamp — they have to fall back to raw kubectl.

Concrete use case: cleaning up an abandoned SiteWatch deployment required deleting a crashlooping postgres StatefulSet. The deployment model handled the Deployment deletion, the pod model handled pod deletion, and the ingress model handled ingress cleanup — but the StatefulSet had to be deleted manually because no model type exists for it.

Requested methods (matching the deployment model pattern):

  • list: List StatefulSets in namespace with replicas, update strategy, volume claim templates
  • get: Full spec including containers, volumes, pod management policy, update strategy
  • scale: Scale replicas
  • delete: Delete a StatefulSet
  • restart: Trigger rolling restart via annotation

The implementation should follow the same pattern as the existing deployment.ts model (uses @kubernetes/client-node AppsV1Api).

Upstream repository: https://github.com/swamp-club/swamp-extensions

Environment

  • Extension: @swamp/kubernetes@2026.06.10.1
  • swamp: 20260717.222905.0-sha.9ab44400
  • OS: linux (x86_64)
  • Deno: 2.8.3
  • Shell: /bin/bash
02Bog Flow
OPENTRIAGEDIN PROGRESSSHIPPED+ 1 MOREASSIGNED+ 5 MOREREVIEW+ 4 MOREPR_MERGED+ 2 MORESESSION_SUMMARIZED

Shipped

7/31/2026, 11:47:50 PM

Click a lifecycle step above to view its details.

03Sludge Pulse
stack72 assigned stack727/31/2026, 10:11:03 PM
Editable. Press Enter to edit.

stack72 commented 7/31/2026, 11:48:54 PM

Thanks @jeremy for reporting this! The fix has been merged and a release is on its way. We appreciate your contribution to swamp.

Sign in to post a ripple.