Skip to content

fix(k8s): handle grace timeout and baseline PSA in volume move - #7845

Merged
dan-petty merged 1 commit into
mainfrom
fix/7843-volume-move-grace-and-baseline
Nov 29, 2026
Merged

dan-petty merged 1 commit into
mainfrom
fix/7843-volume-move-grace-and-baseline

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Issue #7843 fixes two failures observed during a live devops k8s volume move on devops/roadmap-service-home:

  1. stop_workloads() waited 300s (DEFAULT_K8S_VOLUME_MOVE_WAIT_SECONDS), while deployment/roadmap-service uses terminationGracePeriodSeconds: 660, so kubectl wait --for=delete timed out before the pod stopped. Read each mounting workload's terminationGracePeriodSeconds and wait max(300, max_grace + 30) seconds.
  2. When a namespace enforces Pod Security restricted and files in the volume use restrictive permissions (0600), non-root pv-migrate (UID 10000) cannot read them. Labeling the namespace to baseline manually before devops k8s volume move fails because Argo CD selfHeal reverts the label before Step 1 pauses Argo CD. Add an opt-in --allow-baseline flag to switch enforce=baseline after pausing and settling Argo CD, run pv-migrate as root, and restore enforce=restricted before resuming Argo CD or on rollback.

Closes #7843

Change: openspec/changes/archive/2026-11-29-7843-volume-move-grace-and-baseline/

@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/k8s Kubernetes commands, Helm charts, pods, services, and policies labels Nov 29, 2026
@dan-petty
dan-petty marked this pull request as ready for review November 29, 2026 23:07
@dan-petty
dan-petty merged commit f7fad97 into main Nov 29, 2026
36 checks passed
@dan-petty
dan-petty deleted the fix/7843-volume-move-grace-and-baseline branch November 29, 2026 23:09
dan-petty-release Bot added a commit that referenced this pull request Nov 29, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.258.0](v0.257.2...v0.258.0)
(2026-11-29)


### Features

* **roadmap:** add incident job reading SLOs and Alertmanager
([#7834](#7834))
([22d9e93](22d9e93)),
closes [#5477](#5477)
* **roadmap:** add Service maintenance pause window
([#7839](#7839))
([71dd896](71dd896)),
closes [#7454](#7454)


### Bug Fixes

* **k8s:** handle grace timeout and baseline PSA in volume move
([#7845](#7845))
([f7fad97](f7fad97))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/k8s Kubernetes commands, Helm charts, pods, services, and policies type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(k8s): handle grace timeout and baseline PSA in volume move

1 participant