Is there an example about how to implement an external controller for AdmissionCheck #2699
-
How to define an external controller for AdmissionCheck? In the public documentation, I could see the built-in provisioning-request controller https://kueue.sigs.k8s.io/docs/concepts/admission_check/ but not the way how to build a custom one. (I am know to the k8s word so bare with me if this question is naive. ^ ^) For example, I want to check in some records in the external database before the job is being admitted. Any help is appreciated! If there is an complete example that would be perfect. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
hi @tenzen-y sorry to bother you. Could you help to shed some lights ? Thank you! ^ ^ |
Beta Was this translation helpful? Give feedback.
-
@mimowo I have same question and try to study the example of ProvisioningRequest. My dev cluster is minikube, not sure if this is the reason,can set up ProvisioningRequest check:
Can you suggest a fix or point me to a working example of external controller for Kueue? |
Beta Was this translation helpful? Give feedback.
@Zhenshan-Jin Sorry for the late response. We have built-in AdmissionCheck Controller for ProvisioningRequest and MultiKueueCluster in the following:
But, unfortunately, we do not have any documentation to implement custom AdmissionCheck controller.
I will create a feature request issue so that we can expose the way for custom AdmissionCheck implementations.