feat(kubernetes): add statefulset model type and bump SDK to 1.4.0 #161

Merged
stack72 merged 1 commit from issue-1315-add-statefulset-model into main 2026-07-31 23:46:59 +00:00
Owner

Summary

  • Add @swamp/kubernetes/statefulset model type with list, get, scale, delete, and restart methods following the deployment.ts pattern
  • Bump @kubernetes/client-node from 1.0.0 to 1.4.0 across all 16 models and helpers
  • Bump all model versions to 2026.08.01.1 with upgrade entries for the SDK bump
  • Update manifest.yaml, README.md, and helpers.ts to reflect 16 model types

StatefulSet schema includes fields specific to the workload type: serviceName, podManagementPolicy, updateStrategyType, updateStrategyPartition, volumeClaimTemplates, currentRevision, updateRevision, collisionCount, currentReplicas, and availableReplicas.

Verification

  • deno check passes on all 16 models + helpers against SDK 1.4.0
  • deno lint (18 files), deno fmt (18 files) clean
  • deno test (2/2 helpers tests green)
  • deno install --frozen lockfile valid
  • Upgrade path verified: instance at published 2026.06.10.1 upgrades to 2026.08.01.1 via swamp extension source add — no version mismatch

SDK compatibility

No existing model logic changes needed for the 1.0.0 → 1.4.0 bump:

  • No HttpError catches (renamed to HttpException in 1.1.2)
  • No Configuration type references (renamed to ConfigurationOptions)
  • No manual body serialization workarounds (1.2.0 fixed auto-serialization)
  • podSelector optional change already handled defensively with ?.

Closes #1315

## Summary - Add `@swamp/kubernetes/statefulset` model type with list, get, scale, delete, and restart methods following the deployment.ts pattern - Bump `@kubernetes/client-node` from 1.0.0 to 1.4.0 across all 16 models and helpers - Bump all model versions to `2026.08.01.1` with upgrade entries for the SDK bump - Update manifest.yaml, README.md, and helpers.ts to reflect 16 model types StatefulSet schema includes fields specific to the workload type: `serviceName`, `podManagementPolicy`, `updateStrategyType`, `updateStrategyPartition`, `volumeClaimTemplates`, `currentRevision`, `updateRevision`, `collisionCount`, `currentReplicas`, and `availableReplicas`. ## Verification - `deno check` passes on all 16 models + helpers against SDK 1.4.0 - `deno lint` (18 files), `deno fmt` (18 files) clean - `deno test` (2/2 helpers tests green) - `deno install --frozen` lockfile valid - Upgrade path verified: instance at published `2026.06.10.1` upgrades to `2026.08.01.1` via `swamp extension source add` — no version mismatch ## SDK compatibility No existing model logic changes needed for the 1.0.0 → 1.4.0 bump: - No `HttpError` catches (renamed to `HttpException` in 1.1.2) - No `Configuration` type references (renamed to `ConfigurationOptions`) - No manual body serialization workarounds (1.2.0 fixed auto-serialization) - `podSelector` optional change already handled defensively with `?.` Closes #1315
feat(kubernetes): add statefulset model type and bump @kubernetes/client-node to 1.4.0
All checks were successful
CI / cve/mini-shai-hulud - lint (pull_request) Has been skipped
CI / cve/mini-shai-hulud - test (pull_request) Has been skipped
CI / model/digitalocean - lockfile up to date (pull_request) Has been skipped
CI / cve/researcher - check (pull_request) Has been skipped
CI / cve/researcher - fmt (pull_request) Has been skipped
CI / cve/researcher - lint (pull_request) Has been skipped
CI / cve/researcher - test (pull_request) Has been skipped
CI / cve/dirtyfrag - lockfile up to date (pull_request) Has been skipped
CI / software-factory - check (pull_request) Has been skipped
CI / software-factory - fmt (pull_request) Has been skipped
CI / software-factory - lint (pull_request) Has been skipped
CI / software-factory - test (pull_request) Has been skipped
CI / software-factory - lockfile up to date (pull_request) Has been skipped
CI / container-image - fmt (pull_request) Has been skipped
CI / container-image - lint (pull_request) Has been skipped
CI / container-image - test (pull_request) Has been skipped
CI / container-image - lockfile up to date (pull_request) Has been skipped
CI / model/digitalocean - check (pull_request) Has been skipped
CI / model/hetzner-cloud - check (pull_request) Has been skipped
CI / Actions Audit (pull_request) Successful in 1m8s
CI / kubernetes - check (pull_request) Successful in 58s
CI / kubernetes - fmt (pull_request) Successful in 56s
CI / kubernetes - lint (pull_request) Successful in 54s
CI / Dependency Audit (pull_request) Successful in 3m32s
CI / kubernetes - test (pull_request) Successful in 1m4s
CI / CI Security Review (pull_request) Has been skipped
CI / kubernetes - lockfile up to date (pull_request) Successful in 56s
CI / Claude Code Review (pull_request) Has been skipped
CI / Adversarial Code Review (pull_request) Has been skipped
CI / Merge Gate (pull_request) Successful in 30s
fa6468e60f
Add a StatefulSet model type to @swamp/kubernetes with list, get, scale,
delete, and restart methods — following the deployment.ts pattern. Includes
StatefulSet-specific schema fields: serviceName, podManagementPolicy,
updateStrategy, volumeClaimTemplates, currentRevision, and updateRevision.

Also bumps @kubernetes/client-node from 1.0.0 to 1.4.0 across all 15
existing models and helpers.ts. All models get a version bump to
2026.08.01.1 with an upgrade entry for the SDK bump.

Closes #1315

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
stack72 deleted branch issue-1315-add-statefulset-model 2026-07-31 23:47:00 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
swamp-club/swamp-extensions!161
No description provided.