Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 2091033

Summary: [Descheduler]: provide ability to override included/excluded namespaces
Product: OpenShift Container Platform Reporter: Jan Chaloupka <jchaloup>
Component: kube-schedulerAssignee: Jan Chaloupka <jchaloup>
Status: CLOSED ERRATA QA Contact: RamaKasturi <knarra>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.11CC: mfojtik
Target Milestone: ---   
Target Release: 4.11.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-08-10 11:14:45 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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