Use Kueue config for populator namespace selector#11218
Conversation
|
@MatteoFari: The label(s) DetailsIn response to this:
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-sigs/prow repository. |
✅ Deploy Preview for kubernetes-sigs-kueue canceled.
|
| {{- $kueueConfig := $defaultKueueConfig -}} | ||
| {{- with .Values.kueue }} | ||
| {{- with .managerConfig }} | ||
| {{- $kueueConfig = .controllerManagerConfigYaml | default $defaultKueueConfig -}} |
There was a problem hiding this comment.
Honestly this is quite a lot of API to bring in just for one field.
Should we just expose the managedNamespaceSelector in the config and read it from the config map for Kueue?
There was a problem hiding this comment.
Yeah it's better, the chart now reads Kueue’s manager config and writes its managedJobsNamespaceSelector into the existing populator config field
18d2af6 to
e43356d
Compare
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: MatteoFari The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
/lgtm |
|
LGTM label has been added. DetailsGit tree hash: 50756caed3da26fbdc0bd1d600ebc3b3df27fa6e |
Signed-off-by: Matteo Fari <matteofari06@gmail.com>
e43356d to
f28aa70
Compare
mimowo
left a comment
There was a problem hiding this comment.
Thank you, reading the namespace selector from Kueue's configuration sounds great, because they should be equal most of the time. However, do we support still setting the managedJobsNamespaceSelector field explicitily in the Kueue populator config? There might still exist a use case when the Kueue-populator wants to restrict the set of namespaces it operates on. If this remains supported, do we have a test to demonstrate that?
|
/lgtm |
|
LGTM label has been added. DetailsGit tree hash: 4e1af8c2e2958a2b0b5f996adfa558a9999de2eb |
What type of PR is this?
/kind feature
What this PR does / why we need it:
kueue-populatornow uses the samemanagedJobsNamespaceSelectoras Kueue.The Helm chart copies
managedJobsNamespaceSelectorfrom Kueue’s manager config into the existing populator config, instead of keeping a separate Helm value.Which issue(s) this PR fixes:
Fixes #7852
Special notes for your reviewer:
Does this PR introduce a user-facing change?