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 1814547: Rebase upstream 1.18 #30

Merged
merged 25 commits into from May 15, 2020

Conversation

damemi
Copy link

@damemi damemi commented May 12, 2020

This rebases our master to match upstream, specifically:

  1. Updating kubernetes deps to 1.18.2 branches
  2. Adds the new PodLifeTime strategy
  3. Fix PodsHavingTooManyRestarts param to be a pointer\
  4. Increase specificity of RemoveDuplicates strategy (https://bugzilla.redhat.com/show_bug.cgi?id=1814547)

This should be the last sync with upstream we have until 1.19 (barring any critical bug fixes before then). The main reason for this sync is so that we can have our release-4.5 branch updated to 1.18 before 1.19 comes out, and the upstream descheduler repo missed this bump previously. Following this I'd like to stick to a regular sync schedule (ideally once per release)

damemi and others added 15 commits May 6, 2020 11:00
…inter

Switch PodsHavingTooManyRestarts params to pointer
The new PodLifeTime descheduler strategy can be used to evict pods that
were created more than the configured number of seconds ago.

In the below example pods created more than 24 hours ago will be evicted.
````
apiVersion: "descheduler/v1alpha1"
kind: "DeschedulerPolicy"
strategies:
  "PodLifeTime":
     enabled: true
     params:
        maxPodLifeTimeSeconds: 86400
````
…ime-strategy

Add New PodLifeTime Strategy
@damemi
Copy link
Author

damemi commented May 12, 2020

/hold
would be nice to get kubernetes-sigs#275 as well since this is a bugfix that's been requested for a while

@openshift-ci-robot openshift-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label May 12, 2020
seanmalloy and others added 10 commits May 12, 2020 22:38
…avis-ci

Update Travis CI build matrix with latest k8s point releases
In multi-tenant environments it is useful to know which namespace a pod
was evicted from. Therefore log the namespace when evicting pods.

Also, do not log a nil error when successfully evicting pods.
End users should be able to see the detailed error from the EvictPod
method when it fails. Updates all strategies to log the error. The
PodLifeTime strategy already logs this error.
The EvictPod function previously returned a bool and an error. The
function now only returns an error. Callers can check for failure by
testing if the returned error is not nil. This aligns the EvictPod
function with idiomatic Go best practices.

Also, the function name has been changed from EvictPod to evictPod
because it is not used outside the evictions package.
…logs

Add Additional Details To Pod Eviction Log Messages
This increases the specificity of the RemoveDuplicates strategy by
removing pods which not only have the same owner, but who also
must have the same list of container images. This also adds a
parameter, `ExcludeOwnerKinds` to the RemoveDuplicates strategy
which accepts a list of Kinds. If a pod has any of these Kinds as
an owner, that pod is not considered for eviction.
@damemi
Copy link
Author

damemi commented May 15, 2020

/hold cancel
this now includes the bugfix for RemoveDuplicates and ready for review

@openshift-ci-robot openshift-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label May 15, 2020
@ingvagabund
Copy link
Member

/approve
/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label May 15, 2020
@ingvagabund
Copy link
Member

/retitle bug 1814547: Rebase upstream 1.18

@openshift-ci-robot openshift-ci-robot changed the title Rebase upstream 1.18 bug 1814547: Rebase upstream 1.18 May 15, 2020
@openshift-ci-robot openshift-ci-robot added the bugzilla/severity-medium Referenced Bugzilla bug's severity is medium for the branch this PR is targeting. label May 15, 2020
@openshift-ci-robot
Copy link

@damemi: This pull request references Bugzilla bug 1814547, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.5.0) matches configured target release for branch (4.5.0)
  • bug is in the state ASSIGNED, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

In response to this:

bug 1814547: Rebase upstream 1.18

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-ci-robot openshift-ci-robot added the bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. label May 15, 2020
@openshift-merge-robot openshift-merge-robot merged commit f7886cd into openshift:master May 15, 2020
@openshift-ci-robot
Copy link

@damemi: All pull requests linked via external trackers have merged: openshift/descheduler#30. Bugzilla bug 1814547 has been moved to the MODIFIED state.

In response to this:

bug 1814547: Rebase upstream 1.18

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla/severity-medium Referenced Bugzilla bug's severity is medium for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants