Skip to content

kueue: Add AdmissionCheck resource model and views - #1174

Open
abhayrajjais01 wants to merge 1 commit into
headlamp-k8s:mainfrom
abhayrajjais01:feat/kueue-admissioncheck-crd-support
Open

kueue: Add AdmissionCheck resource model and views#1174
abhayrajjais01 wants to merge 1 commit into
headlamp-k8s:mainfrom
abhayrajjais01:feat/kueue-admissioncheck-crd-support

Conversation

@abhayrajjais01

Copy link
Copy Markdown

Description

This PR introduces support for Kueue's AdmissionCheck CRD (kueue.x-k8s.io/v1beta1) in the Headlamp Kueue plugin.

AdmissionCheck is a core mechanism introduced in Kueue v0.8+ that controls dynamic workload admission (such as automated cloud GPU node provisioning via Karpenter / Cluster Autoscaler ProvisioningRequests and MultiKueue cluster dispatching checks).

What Changes

  • Resource Model & Formatters (src/resources/):
    • Implemented AdmissionCheck model extending KubeObject<KubeAdmissionCheck>.
    • Added pure formatters for controller names, retry delay, parameters reference (renderParametersRef), and condition status.
  • UI Views (src/components/admissionchecks/):
    • AdmissionCheckList: ResourceListView displaying name, controller name, retry delay, parameters, status, and age with useTranslation() localization.
    • AdmissionCheckDetail: DetailsGrid showing controller attributes, parameters reference, and ConditionsSection.
  • Navigation & Routing:
    • Registered AdmissionChecks sidebar navigation entry under the Kueue menu group.
    • Registered list and detail routes in kueueRoutes.ts and index.tsx.
  • Unit Tests (src/resources/admissionCheck.test.ts):
    • Added 12 comprehensive unit tests covering all formatters and edge cases.

all test passed locally

image image

Implement AdmissionCheck CRD model, formatters, list and detail views,
sidebar navigation, and unit tests to support dynamic admission checks.

Signed-off-by: Abhayraj Jaiswal <abhayraj916146@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant