Skip to content

Commit

Permalink
Merge pull request #366 from lixiang233/podAntiAffinity_add_missing_v…
Browse files Browse the repository at this point in the history
…alidation

Add missing validation in PodAntiAffinity
  • Loading branch information
k8s-ci-robot authored Jul 30, 2020
2 parents 96efd23 + a5eb9fc commit cdcd677
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/descheduler/strategies/pod_antiaffinity.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ func validateRemovePodsViolatingInterPodAntiAffinityParams(params *api.StrategyP

// RemovePodsViolatingInterPodAntiAffinity evicts pods on the node which are having a pod affinity rules.
func RemovePodsViolatingInterPodAntiAffinity(ctx context.Context, client clientset.Interface, strategy api.DeschedulerStrategy, nodes []*v1.Node, podEvictor *evictions.PodEvictor) {
if err := validateRemovePodsViolatingInterPodAntiAffinityParams(strategy.Params); err != nil {
klog.V(1).Info(err)
return
}
var namespaces api.Namespaces
if strategy.Params != nil {
namespaces = strategy.Params.Namespaces
Expand Down

0 comments on commit cdcd677

Please sign in to comment.