Skip to content

Commit

Permalink
test(manual): restart Kubelet should not result in repeated event
Browse files Browse the repository at this point in the history
longhorn/longhorn-8072

Signed-off-by: Chin-Ya Huang <[email protected]>
  • Loading branch information
c3y1huang committed Mar 1, 2024
1 parent de102f7 commit eec96fd
Showing 1 changed file with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
Test: restarting Kubelet should not result in repeated "no Pending workload pods ..." event for the workload pod.
---

## Related issues

- https://github.com/longhorn/longhorn/issues/8072

## Test step

**Given** A [deployment](https://github.com/longhorn/longhorn/blob/master/examples/deployment.yaml) is created.

**When** Kubelet on the node with attached volume of the deployment is restarted.
```bash
systemctl restart k3s-agent.service
```

**Then** Observe the events of the deployment pod.
```
kubectl get events --field-selector involvedObject.name=${POD_NAME} -w
```
**And** There are no recurring `no Pending workload pods for volume xxx to be mounted` events.

0 comments on commit eec96fd

Please sign in to comment.