Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug 1801692: Sync with upstream #29

Merged
merged 24 commits into from
Apr 28, 2020

Commits on Apr 6, 2020

  1. Configuration menu
    Copy the full SHA
    b9b1eae View commit details
    Browse the repository at this point in the history

Commits on Apr 8, 2020

  1. Configuration menu
    Copy the full SHA
    e3a562a View commit details
    Browse the repository at this point in the history

Commits on Apr 15, 2020

  1. readme: RemovePodsViolatingNodeAffinity: reword description of the st…

    …rategy
    
    Compared to https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#node-affinity
    the strategy kinda implements requiredDuringSchedulingRequiredDuringExecution node affinity type
    for kubelets. Only addition to kubelet is the strategy checks whether is at least another node
    capable of respecting the node affinity rules.
    
    When requiredDuringSchedulingRequiredDuringExecution node affinity type is implemented in kubelet,
    it's likely the strategy either gets removed or re-implemented. Stressing the relation with
    requiredDuringSchedulingRequiredDuringExecution will helps consumers of descheduler
    to keep in mind the kubelet will eventually take over the strategy when implemented.
    ingvagabund committed Apr 15, 2020
    Configuration menu
    Copy the full SHA
    e0c101c View commit details
    Browse the repository at this point in the history

Commits on Apr 17, 2020

  1. Merge pull request kubernetes-sigs#264 from ingvagabund/remove-pods-v…

    …iolating-node-affinity
    
    readme: RemovePodsViolatingNodeAffinity: reword description of the strategy
    k8s-ci-robot authored Apr 17, 2020
    Configuration menu
    Copy the full SHA
    9a84afe View commit details
    Browse the repository at this point in the history
  2. lownodeutilization: clasify pods of over utilized nodes only

    Only over utilized nodes need clasification of pods into categories.
    Thus, skipping categorizing of pods which saves computation time in cases
    where the number of over utilized nodes makes less than 50% of all nodes
    or their fraction.
    ingvagabund committed Apr 17, 2020
    Configuration menu
    Copy the full SHA
    150f945 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    414554a View commit details
    Browse the repository at this point in the history
  4. lownodeutilization: evict best-effort pods only

    Unit test refactored node utilization and pod clasification
    ingvagabund committed Apr 17, 2020
    Configuration menu
    Copy the full SHA
    f53264b View commit details
    Browse the repository at this point in the history

Commits on Apr 19, 2020

  1. Drop local implementation of toleratesTaint in favor of k8s.io/api/co…

    …re/v1.Toleration.TolerateTaint
    
    Functionally identical implementation of toleratesTaint is already provided in k8s.io/api
    ingvagabund committed Apr 19, 2020
    Configuration menu
    Copy the full SHA
    36e3d1e View commit details
    Browse the repository at this point in the history
  2. allTaintsTolerated: remove for iteration through tolerations which is…

    … already implemented in utils.TolerationsTolerateTaint
    ingvagabund committed Apr 19, 2020
    Configuration menu
    Copy the full SHA
    0e9b33b View commit details
    Browse the repository at this point in the history
  3. Drop getNoScheduleTaints and allTaintsTolerated in favor of utils.Tol…

    …erationsTolerateTaintsWithFilter
    ingvagabund committed Apr 19, 2020
    Configuration menu
    Copy the full SHA
    1c300a9 View commit details
    Browse the repository at this point in the history
  4. Merge pull request kubernetes-sigs#262 from ingvagabund/order-pods-by…

    …-priority-only-over-over-utilized-nodes
    
    Order pods by priority only over over utilized nodes
    k8s-ci-robot authored Apr 19, 2020
    Configuration menu
    Copy the full SHA
    0302671 View commit details
    Browse the repository at this point in the history

Commits on Apr 21, 2020

  1. Call utils.TolerationsTolerateTaintsWithFilter directly, not through …

    …checkPodsSatisfyTolerations
    ingvagabund committed Apr 21, 2020
    Configuration menu
    Copy the full SHA
    6db7c3b View commit details
    Browse the repository at this point in the history
  2. Merge pull request kubernetes-sigs#265 from ingvagabund/tolerations-t…

    …ains-code-cleanup
    
    Tolerations taints code cleanup
    k8s-ci-robot authored Apr 21, 2020
    Configuration menu
    Copy the full SHA
    6c7f846 View commit details
    Browse the repository at this point in the history

Commits on Apr 22, 2020

  1. Move maximum-pods-per-nodes-evicted logic under a single invocation

    Each strategy implements a test for checking if a maximum number of pods per node
    was already evicted. The test duplicates a code that can be put
    under a single invocation. Thus, reducing the number of arguments passed
    to each strategy given EvicPod call can encapsulate both the check
    and the invocation of the pod eviction itself.
    ingvagabund committed Apr 22, 2020
    Configuration menu
    Copy the full SHA
    240fa93 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    077b7f6 View commit details
    Browse the repository at this point in the history

Commits on Apr 23, 2020

  1. Merge pull request kubernetes-sigs#266 from ingvagabund/pod-evictor

    Move maximum-pods-per-nodes-evicted logic under a single invocation
    k8s-ci-robot authored Apr 23, 2020
    Configuration menu
    Copy the full SHA
    3a8dfc0 View commit details
    Browse the repository at this point in the history

Commits on Apr 24, 2020

  1. Configuration menu
    Copy the full SHA
    e7c4279 View commit details
    Browse the repository at this point in the history
  2. make gen && go mod vendor

    damemi committed Apr 24, 2020
    Configuration menu
    Copy the full SHA
    c2d7e22 View commit details
    Browse the repository at this point in the history

Commits on Apr 27, 2020

  1. Merge pull request kubernetes-sigs#254 from damemi/toomanyrestarts

    Add RemoveTooManyRestarts policy
    k8s-ci-robot authored Apr 27, 2020
    Configuration menu
    Copy the full SHA
    91de471 View commit details
    Browse the repository at this point in the history

Commits on Apr 28, 2020

  1. Turn StrategyParameters.NodeResourceUtilizationThresholds field into …

    …a pointer
    
    The field is intended to be omitempty when not set. Without a pointer the strategy
    serialized into json string looks like:
    
    ```json
    strategies:
      LowNodeUtilization:
        enabled: true
        params:
          nodeResourceUtilizationThresholds:
            numberOfNodes: 1
            targetThresholds:
              cpu: 50
              memory: 50
              pods: 20
            thresholds:
              cpu: 50
              memory: 50
              pods: 20
      RemoveDuplicates:
        enabled: true
        params:
          nodeResourceUtilizationThresholds: {}
      RemovePodsViolatingInterPodAntiAffinity:
        enabled: true
        params:
          nodeResourceUtilizationThresholds: {}
      RemovePodsViolatingNodeAffinity:
        enabled: true
        params:
          nodeAffinityType:
          - requiredDuringSchedulingIgnoredDuringExecution
          nodeResourceUtilizationThresholds: {}
      RemovePodsViolatingNodeTaints:
        enabled: true
        params:
          nodeResourceUtilizationThresholds: {}
    ```
    
    It's preferred to have the following json string instead:
    ```
    strategies:
      LowNodeUtilization:
        enabled: true
        params:
          nodeResourceUtilizationThresholds:
            numberOfNodes: 1
            targetThresholds:
              cpu: 50
              memory: 50
              pods: 20
            thresholds:
              cpu: 50
              memory: 50
              pods: 20
      RemoveDuplicates:
        enabled: true
      RemovePodsViolatingInterPodAntiAffinity:
        enabled: true
      RemovePodsViolatingNodeAffinity:
        enabled: true
        params:
          nodeAffinityType:
          - requiredDuringSchedulingIgnoredDuringExecution
      RemovePodsViolatingNodeTaints:
        enabled: true
    ```
    ingvagabund committed Apr 28, 2020
    Configuration menu
    Copy the full SHA
    991eddb View commit details
    Browse the repository at this point in the history
  2. Merge pull request kubernetes-sigs#240 from ingvagabund/turn-strategy…

    …-params-NodeResourceUtilizationThresholds-field-into-pointer
    
    Turn StrategyParameters.NodeResourceUtilizationThresholds field into a pointer
    k8s-ci-robot authored Apr 28, 2020
    Configuration menu
    Copy the full SHA
    149085f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    cbcefb5 View commit details
    Browse the repository at this point in the history
  4. Merge pull request kubernetes-sigs#267 from ingvagabund/drop-Deschedu…

    …lerServer-from-strategies
    
    Drop descheduler server from strategies
    k8s-ci-robot authored Apr 28, 2020
    Configuration menu
    Copy the full SHA
    78eef6c View commit details
    Browse the repository at this point in the history
  5. Sync with upstream

    ingvagabund committed Apr 28, 2020
    Configuration menu
    Copy the full SHA
    f2c3954 View commit details
    Browse the repository at this point in the history