kaichiachen opened a new pull request, #966:
URL: https://github.com/apache/yunikorn-k8shim/pull/966
### What is this PR for?
Implements scheduler name filtering in Yunikorn's admission controller to
support environments with multiple schedulers
Key changes:
- Added new configuration options:
- `admissionController.filtering.processSchedulerNames`
- `admissionController.filtering.bypassSchedulerNames`
- Modified admission controller logic to:
- Only update schedulerName when it matches processSchedulerNames
- Skip schedulerName updates when it matches bypassSchedulerNames
- Maintain all existing namespace filtering behavior
- Added logging for scheduler name filtering decisions
### What type of PR is it?
* [ ] - Bug Fix
* [x] - Improvement
* [ ] - Feature
* [ ] - Documentation
* [ ] - Hot Fix
* [ ] - Refactoring
### Todos
* [ ] - Task
### What is the Jira issue?
https://issues.apache.org/jira/browse/YUNIKORN-2981
### How should this be tested?
1. Set up Yunikonr with
```
admissionController:
filtering:
processSchedulerNames: "^default-scheduler$|^yunikorn$"
bypassSchedulerNames: "^other-scheduler$"
```
2. Set up default-scheduler pods and other-scheduler pods - Verify both
pod's schedulerNames are expected
3. Update default-scheduler pods - Verify scheduler name is still the same
### Screenshots (if appropriate)
### Questions:
* [ ] - The licenses files need update.
* [ ] - There is breaking changes for older versions.
* [ ] - It needs documentation.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]