Skip to content

feat(restapi): add helm PodDisruptionBudget#201

Open
giuliocalzo wants to merge 1 commit into
SlinkyProject:mainfrom
giuliocalzo:feat/restapi-pdb
Open

feat(restapi): add helm PodDisruptionBudget#201
giuliocalzo wants to merge 1 commit into
SlinkyProject:mainfrom
giuliocalzo:feat/restapi-pdb

Conversation

@giuliocalzo

Copy link
Copy Markdown
Contributor

Summary

  • Add an optional PodDisruptionBudget for the slurmrestd (RestApi) pods in the slurm Helm chart.
  • The PDB selector matches the labels the operator applies to the slurmrestd pods (app.kubernetes.io/name=slurmrestd and app.kubernetes.io/instance=<release fullname>), via a new slurm.restapi.selectorLabels helper.
  • Gated behind restapi.pdb.enabled and only rendered when restapi.replicas > 1 (a PDB on a single-replica Deployment would block all voluntary evictions).
  • Supports minAvailable (default 1) and maxUnavailable (takes precedence when set).

This is implemented purely at the Helm level; no CRD/operator (Go) changes.

Test plan

  • helm template renders the PDB with correct name, namespace, labels and selector.
  • helm unittest suite tests/restapi_pdb_test.yaml (6 cases): disabled, single-replica skip, metadata/selector/spec, custom minAvailable, maxUnavailable precedence, namespaceOverride.
  • helm lint / make helm-validate pass.
  • All pre-commit hooks green (incl. helm-docs, helm-validate, helm-unittest).

Add an optional PodDisruptionBudget for the slurmrestd (RestApi) pods in
the slurm chart. The PDB selector matches the labels the operator applies
to the slurmrestd pods (app.kubernetes.io/name=slurmrestd and
app.kubernetes.io/instance=<release fullname>).

It is gated behind restapi.pdb.enabled and only rendered when
restapi.replicas > 1, since a PDB on a single-replica Deployment would
block all voluntary evictions. Supports minAvailable (default) and
maxUnavailable (takes precedence when set).
@giuliocalzo giuliocalzo changed the title feat(charts): add PodDisruptionBudget for restapi feat(restapi): add PodDisruptionBudget for restapi May 28, 2026
@giuliocalzo giuliocalzo changed the title feat(restapi): add PodDisruptionBudget for restapi feat(restapi): add helm PodDisruptionBudget May 28, 2026
@vivian-hafener vivian-hafener self-assigned this May 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants