Bug 2091033 - [Descheduler]: provide ability to override included/excluded namespaces
Summary: [Descheduler]: provide ability to override included/excluded namespaces
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: kube-scheduler
Version: 4.11
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.11.0
Assignee: Jan Chaloupka
QA Contact: RamaKasturi
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-05-27 11:40 UTC by Jan Chaloupka
Modified: 2022-08-10 11:14 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-08-10 11:14:45 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift cluster-kube-descheduler-operator pull 255 0 None Merged bug 2091033: Namespace filtering 2022-06-07 07:17:49 UTC
Github openshift cluster-kube-descheduler-operator pull 260 0 None Merged bug 2091033: OSDOCS-3679: Clarifying which mode simulates vs evicts 2022-05-27 12:58:16 UTC
Red Hat Product Errata RHSA-2022:5069 0 None None None 2022-08-10 11:14:57 UTC

Description Jan Chaloupka 2022-05-27 11:40:32 UTC
https://issues.redhat.com/browse/WRKLDS-300

The Descheduler Operator should provide the ability to include/exclude certain namespaces to the user. It currently has hardcoded logic to exclude all namespaces prefixed with `openshift-` or `kube-`. Customers would like the ability to provide a similar pattern, or specific list.

This would be difficult to implement on a per-profile basis without considerable refactoring of the operator CRD, so it should be implemented as a top-level option.

Comment 2 RamaKasturi 2022-06-07 17:36:14 UTC
Verified bug with the paylaod below and i see that it works fine, so moving the bug to verified state.

[knarra@knarra OpenShift]$ oc get csv -n openshift-kube-descheduler-operator
NAME                                                 DISPLAY                            VERSION               REPLACES   PHASE
clusterkubedescheduleroperator.4.11.0-202206030929   Kube Descheduler Operator          4.11.0-202206030929              Succeeded

[knarra@knarra OpenShift]$ oc get clusterversion
NAME      VERSION                              AVAILABLE   PROGRESSING   SINCE   STATUS
version   4.11.0-0.nightly-2022-06-06-025509   True        False         13h     Cluster version is 4.11.0-0.nightly-2022-06-06-025509

Below cases were tested:
==========================
1) Enable both include/exclude namespaces and verify that descheduler operator does not allow enabling both at the same time
2) Enable excluded namespaces and verify that pods does not get evicted from the excluded namespace even if they meet eviction criteria
3) Enable included namespaces and verified that pod gets evicted from the included namespaces if they meet eviction criteria.

Comment 4 errata-xmlrpc 2022-08-10 11:14:45 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Important: OpenShift Container Platform 4.11.0 bug fix and security update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:5069


Note You need to log in before you can comment on or make changes to this bug.