mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 04:06:03 +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,
|
// Add the pod to PodDeleteList no matter what PodDeleteStatus is,
|
||||||
// those pods whose PodDeleteStatus is false like DaemonSet will
|
// those pods whose PodDeleteStatus is false like DaemonSet will
|
||||||
// be catched by list.errors()
|
// be catched by list.errors()
|
||||||
|
pod.Kind = "Pod"
|
||||||
|
pod.APIVersion = "v1"
|
||||||
pods = append(pods, PodDelete{
|
pods = append(pods, PodDelete{
|
||||||
Pod: pod,
|
Pod: pod,
|
||||||
Status: status,
|
Status: status,
|
||||||
|
Loading…
Reference in New Issue
Block a user