craigcondit commented on code in PR #469:
URL: https://github.com/apache/yunikorn-k8shim/pull/469#discussion_r1025814621
##########
pkg/plugin/admissioncontrollers/webhook/admission_controller.go:
##########
@@ -199,11 +218,10 @@ func (c *admissionController) processPod(req
*admissionv1.AdmissionRequest) *adm
return admissionResponseBuilder(uid, true, "", patchBytes)
}
-func (c *admissionController) processWorkload(req
*admissionv1.AdmissionRequest) *admissionv1.AdmissionResponse {
+func (c *admissionController) processWorkload(req
*admissionv1.AdmissionRequest, namespace string) *admissionv1.AdmissionResponse
{
Review Comment:
Also, I think we need to exclude workloads the same way we do pods, by
checking the namespace against `(process/bypass)Namespaces` and
`(label/noLabel)Namespaces`. Otherwise we're affecting workloads that will not
be scheduled by YuniKorn.
--
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]