Repository navigation
Closed as not planned
Closed as not planned
Copy link
Labels
priority/p3-lowPriority P3: a small improvementscope/k8sKubernetes commands, Helm charts, pods, services, and policiestype/featureType feature: a new function
Description
Context & Rationale
#686 asked for r to restart a pod. Three things stand in the way:
ris already Refresh (src/devops_cli/ui/dashboard.py:151).- The only restart in the CLI is
devops argo rollouts restart, which works only on Argo Rollout objects (src/devops_cli/commands/argo.py:693-707, src/devops_cli/argo/rollouts.py:46). Nothing restarts Deployments, StatefulSets or DaemonSets. - Deleting a pod that has no controller loses the pod.
Scope & Deliverables
- Deliverable:
devops k8s restart <namespace>/<pod>follows the pod's owner chain. For a pod owned by a ReplicaSet, it goes on to that ReplicaSet's Deployment or Argo Rollout; StatefulSets and DaemonSets own their pods directly.- A Deployment, StatefulSet or DaemonSet is rollout-restarted.
- A Rollout is restarted through the existing
restart_rollout. - A bare pod is refused.
--dry-runis supported.
- A dashboard key with a confirmation dialog that calls the same function.
- Acceptance criteria:
--dry-runnames the owning workload and changes nothing.- A Rollout-owned pod goes through
restart_rollout. - A bare pod is refused with a message.
- The dashboard asks for confirmation before acting.
- Tests fake the API.
- Key questions:
- Which key?
R(proposed). - Refuse protected namespaces such as kube-system? Yes, through a constant (proposed).
- Which key?
- Constraint: there is no restart without confirmation, and API calls run on worker threads.
Strategic Alignment
- Milestone: Backlog
- Depends on: feat(k8s): truthful pod status, filters, container-aware logs and pod inspector in the dashboard (
tab-k8s) #686
Update 2026-10-08: refinement
devops k8s push-secrets already restarts workloads (k8s/secret_push.py:643-657), so the command shares that function. '--dry-run names the owning workload' needs reads, which #412 forbids:
-
--dry-runmakes no request and prints the planned reads and patch with<owner>placeholders. - The confirmation names the owning workload; declining sends nothing.
Metadata
Metadata
Assignees
Labels
priority/p3-lowPriority P3: a small improvementscope/k8sKubernetes commands, Helm charts, pods, services, and policiestype/featureType feature: a new function
Type
Projects
- StatusShow more project fieldsDone
Activity
dan-petty commentedon Oct 8, 2026
Linked: #807, #808 and #811. All four split from #686 and add to the Kubernetes tab's
BINDINGS; this item proposesR, beside Refresh'sr(ui/dashboard.py:181). Found by the 2026-10-08 backlog review.dan-petty commentedon Oct 25, 2026
Closed as not planned, 2026-10-25. The owner accepted the recommendation to use k9s for the Kubernetes functions of
devops dashboard. The audit of the Kubernetes and Logs tabs is on #1885.k9s v0.51.0, which
devops install-toolspins, covers this item. In the Deployment, StatefulSet and DaemonSet views, its Restart action does a rollout restart of the workload, and it asks for confirmation first. From a pod, its Jump Owner action opens the workload that owns the pod.devops argo rollouts restartrestarts an Argo Rollout. A bare pod has no workload to restart, as this item says.