mirror of
https://github.com/kubernetes-sigs/descheduler.git
synced 2026-01-26 13:29:11 +01:00
add argument to remove only pods violating specific node taints
This commit is contained in:
@@ -37,6 +37,7 @@ func TestSetDefaults_RemovePodsViolatingNodeTaintsArgs(t *testing.T) {
|
||||
LabelSelector: nil,
|
||||
IncludePreferNoSchedule: false,
|
||||
ExcludedTaints: nil,
|
||||
IncludedTaints: nil,
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -46,12 +47,14 @@ func TestSetDefaults_RemovePodsViolatingNodeTaintsArgs(t *testing.T) {
|
||||
LabelSelector: &metav1.LabelSelector{},
|
||||
IncludePreferNoSchedule: false,
|
||||
ExcludedTaints: []string{"ExcludedTaints"},
|
||||
IncludedTaints: []string{"IncludedTaints"},
|
||||
},
|
||||
want: &RemovePodsViolatingNodeTaintsArgs{
|
||||
Namespaces: &api.Namespaces{},
|
||||
LabelSelector: &metav1.LabelSelector{},
|
||||
IncludePreferNoSchedule: false,
|
||||
ExcludedTaints: []string{"ExcludedTaints"},
|
||||
IncludedTaints: []string{"IncludedTaints"},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user