Craig Condit created YUNIKORN-1084:
--------------------------------------
Summary: Update namespace handling in admission controller
Key: YUNIKORN-1084
URL: https://issues.apache.org/jira/browse/YUNIKORN-1084
Project: Apache YuniKorn
Issue Type: Improvement
Components: shim - kubernetes
Reporter: Craig Condit
Assignee: Craig Condit
The current namespaceBlacklist property in the admission controller doesn't
work as intended. It is meant to ignore any pods in the configured blacklist.
However, these pods still get annotated with 'schedulerName: yunikorn' which is
incorrect.
Additionally, when running in scheduler plugin mode, we often want to control
which namespaces should be processed by yunikorn scheduling logic, and which
should be passed through to the default scheduler logic.
We should add two additional parameters (which will also be comma-separated
regexes):
* namespaceLabelProcess: (default: all namespaces)
* namespaceLabelIgnore: (default: no namespaces)
The first will default to all namespaces, and the second will prune the list
from the first.
So the logic becomes:
1) Is namespace blacklisted? If so, do nothing (allow pod to proceed to default
scheduler), and terminate.
2) Update schedulerName to yunikorn
3) Is namespace in list to be processed and NOT in list to be ignored? If so,
apply labels.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]