mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 19:31:44 +00:00
Fix kubectl drain --dry-run=server
Adds missing type meta to PodDelete items
This commit is contained in:
parent
0ed8ee6fd7
commit
ff9ada1b55
@ -220,6 +220,8 @@ func filterPods(podList *corev1.PodList, filters []PodFilter) *PodDeleteList {
|
||||
// Add the pod to PodDeleteList no matter what PodDeleteStatus is,
|
||||
// those pods whose PodDeleteStatus is false like DaemonSet will
|
||||
// be catched by list.errors()
|
||||
pod.Kind = "Pod"
|
||||
pod.APIVersion = "v1"
|
||||
pods = append(pods, PodDelete{
|
||||
Pod: pod,
|
||||
Status: status,
|
||||
|
Loading…
Reference in New Issue
Block a user