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
Shipped
Click a lifecycle step above to view its details.