add argument to remove only pods violating specific node taints

This commit is contained in:
etoster
2024-03-25 15:21:21 +01:00
parent a5f322521e
commit b7697869f2
11 changed files with 122 additions and 4 deletions
+1
View File
@@ -90,6 +90,7 @@ type StrategyParameters struct {
NodeFit bool `json:"nodeFit"`
IncludePreferNoSchedule bool `json:"includePreferNoSchedule"`
ExcludedTaints []string `json:"excludedTaints,omitempty"`
IncludedTaints []string `json:"includedTaints,omitempty"`
}
type (
+5
View File
@@ -366,6 +366,11 @@ func (in *StrategyParameters) DeepCopyInto(out *StrategyParameters) {
*out = make([]string, len(*in))
copy(*out, *in)
}
if in.IncludedTaints != nil {
in, out := &in.IncludedTaints, &out.IncludedTaints
*out = make([]string, len(*in))
copy(*out, *in)
}
return
}