Skip to main content
← Back to list
01Issue
FeatureOpenSwamp CLITeam
AssigneesNone

Relationships

#1315 Add @swamp/kubernetes/statefulset model type

Opened by jeremy · 7/21/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

Open

7/21/2026, 12:31:27 PM

No activity in this phase yet.

03Sludge Pulse

Sign in to post a ripple.