Skip to content

Conversation

@omeryahud
Copy link
Contributor

In the upcoming release, gpu-operator no longer sets the nvidia runtime class as the default runtimeClass in the cluster, hence the need to set it explicitly for pod that request GPUs

@omeryahud omeryahud force-pushed the omeryahud/explicitly-set-nvidia-runtimeclass-to-gpu-pods branch 4 times, most recently from 7f784cb to e17accd Compare October 29, 2025 08:37
… deploys it as the default runtimeClass

Signed-off-by: Omer Yahud <[email protected]>
@omeryahud omeryahud force-pushed the omeryahud/explicitly-set-nvidia-runtimeclass-to-gpu-pods branch 2 times, most recently from a52fb40 to e66fffb Compare October 29, 2025 08:40
s
Signed-off-by: Omer Yahud <[email protected]>
@omeryahud omeryahud force-pushed the omeryahud/explicitly-set-nvidia-runtimeclass-to-gpu-pods branch from e66fffb to 69bc8fc Compare October 29, 2025 10:35
@github-actions
Copy link

Merging this branch changes the coverage (3 decrease, 3 increase)

Impacted Packages Coverage Δ 🤖
github.com/NVIDIA/KAI-scheduler/cmd/admission 0.00% (ø)
github.com/NVIDIA/KAI-scheduler/cmd/admission/app 0.00% (ø)
github.com/NVIDIA/KAI-scheduler/pkg/admission/webhook/v1alpha2/runtimeenforcement 75.00% (+75.00%) 🌟
github.com/NVIDIA/KAI-scheduler/pkg/apis/kai/v1/admission 21.05% (-0.07%) 👎
github.com/NVIDIA/KAI-scheduler/pkg/binder/binding/resourcereservation 88.27% (-0.45%) 👎
github.com/NVIDIA/KAI-scheduler/pkg/common/k8s_utils 21.67% (+21.67%) 🌟
github.com/NVIDIA/KAI-scheduler/pkg/common/resources 39.13% (-3.22%) 👎
github.com/NVIDIA/KAI-scheduler/pkg/operator/operands/admission 87.07% (+0.23%) 👍

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/NVIDIA/KAI-scheduler/cmd/admission/app/app.go 0.00% (ø) 46 (+1) 0 46 (+1)
github.com/NVIDIA/KAI-scheduler/cmd/admission/app/options.go 0.00% (ø) 16 (+1) 0 16 (+1)
github.com/NVIDIA/KAI-scheduler/cmd/admission/main.go 0.00% (ø) 20 (+3) 0 20 (+3)
github.com/NVIDIA/KAI-scheduler/pkg/admission/webhook/v1alpha2/runtimeenforcement/runtime_enforcement.go 75.00% (+75.00%) 20 (+20) 15 (+15) 5 (+5) 🌟
github.com/NVIDIA/KAI-scheduler/pkg/apis/kai/v1/admission/admission.go 100.00% (ø) 16 (+1) 16 (+1) 0
github.com/NVIDIA/KAI-scheduler/pkg/apis/kai/v1/admission/zz_generated.deepcopy.go 0.00% (ø) 60 (+4) 0 60 (+4)
github.com/NVIDIA/KAI-scheduler/pkg/binder/binding/resourcereservation/resource_reservation.go 88.27% (-0.45%) 196 (+1) 173 23 (+1) 👎
github.com/NVIDIA/KAI-scheduler/pkg/common/k8s_utils/discovery.go 81.25% (+81.25%) 16 (+16) 13 (+13) 3 (+3) 🌟
github.com/NVIDIA/KAI-scheduler/pkg/common/resources/gpu_sharing.go 0.00% (ø) 53 (+7) 0 53 (+7)
github.com/NVIDIA/KAI-scheduler/pkg/operator/operands/admission/resources.go 90.43% (+0.21%) 94 (+2) 85 (+2) 9 👍

Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code.

Changed unit test files

  • github.com/NVIDIA/KAI-scheduler/pkg/admission/webhook/v1alpha2/runtimeenforcement/runtime_enforcement_test.go
  • github.com/NVIDIA/KAI-scheduler/pkg/apis/kai/v1/admission/admission_test.go
  • github.com/NVIDIA/KAI-scheduler/pkg/common/k8s_utils/discovery_test.go
  • github.com/NVIDIA/KAI-scheduler/pkg/operator/operands/admission/resources_test.go

@omeryahud omeryahud force-pushed the omeryahud/explicitly-set-nvidia-runtimeclass-to-gpu-pods branch from b91d157 to 65b85ed Compare November 3, 2025 10:48
@omeryahud omeryahud changed the title Explicitly apply 'nvidia' runtimeClass to GPU pods feat(admission): Explicitly apply 'nvidia' runtimeClass to GPU pods Nov 3, 2025
enoodle
enoodle previously approved these changes Nov 3, 2025
itsomri
itsomri previously approved these changes Nov 3, 2025
@github-actions
Copy link

github-actions bot commented Nov 3, 2025

Merging this branch changes the coverage (3 decrease, 2 increase)

Impacted Packages Coverage Δ 🤖
github.com/NVIDIA/KAI-scheduler/cmd/admission 0.00% (ø)
github.com/NVIDIA/KAI-scheduler/cmd/admission/app 0.00% (ø)
github.com/NVIDIA/KAI-scheduler/pkg/admission/webhook/v1alpha2/runtimeenforcement 70.00% (+70.00%) 🌟
github.com/NVIDIA/KAI-scheduler/pkg/apis/kai/v1/admission 21.05% (-0.07%) 👎
github.com/NVIDIA/KAI-scheduler/pkg/binder/binding/resourcereservation 88.27% (-0.45%) 👎
github.com/NVIDIA/KAI-scheduler/pkg/common/resources 39.13% (-3.22%) 👎
github.com/NVIDIA/KAI-scheduler/pkg/operator/operands/admission 87.07% (+0.23%) 👍

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/NVIDIA/KAI-scheduler/cmd/admission/app/app.go 0.00% (ø) 45 0 45
github.com/NVIDIA/KAI-scheduler/cmd/admission/app/options.go 0.00% (ø) 16 (+1) 0 16 (+1)
github.com/NVIDIA/KAI-scheduler/cmd/admission/main.go 0.00% (ø) 20 (+3) 0 20 (+3)
github.com/NVIDIA/KAI-scheduler/pkg/admission/webhook/v1alpha2/runtimeenforcement/runtime_enforcement.go 70.00% (+70.00%) 10 (+10) 7 (+7) 3 (+3) 🌟
github.com/NVIDIA/KAI-scheduler/pkg/apis/kai/v1/admission/admission.go 100.00% (ø) 16 (+1) 16 (+1) 0
github.com/NVIDIA/KAI-scheduler/pkg/apis/kai/v1/admission/zz_generated.deepcopy.go 0.00% (ø) 60 (+4) 0 60 (+4)
github.com/NVIDIA/KAI-scheduler/pkg/binder/binding/resourcereservation/resource_reservation.go 88.27% (-0.45%) 196 (+1) 173 23 (+1) 👎
github.com/NVIDIA/KAI-scheduler/pkg/common/resources/gpu_sharing.go 0.00% (ø) 53 (+7) 0 53 (+7)
github.com/NVIDIA/KAI-scheduler/pkg/operator/operands/admission/resources.go 90.43% (+0.21%) 94 (+2) 85 (+2) 9 👍

Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code.

Changed unit test files

  • github.com/NVIDIA/KAI-scheduler/pkg/admission/webhook/v1alpha2/runtimeenforcement/runtime_enforcement_test.go
  • github.com/NVIDIA/KAI-scheduler/pkg/apis/kai/v1/admission/admission_test.go
  • github.com/NVIDIA/KAI-scheduler/pkg/operator/operands/admission/resources_test.go

@omeryahud omeryahud dismissed stale reviews from itsomri and enoodle via 75fc3e6 November 3, 2025 12:22
@omeryahud omeryahud force-pushed the omeryahud/explicitly-set-nvidia-runtimeclass-to-gpu-pods branch from 65b85ed to 75fc3e6 Compare November 3, 2025 12:22
@github-actions
Copy link

github-actions bot commented Nov 3, 2025

Merging this branch changes the coverage (3 decrease, 2 increase)

Impacted Packages Coverage Δ 🤖
github.com/NVIDIA/KAI-scheduler/cmd/admission 0.00% (ø)
github.com/NVIDIA/KAI-scheduler/cmd/admission/app 0.00% (ø)
github.com/NVIDIA/KAI-scheduler/pkg/admission/webhook/v1alpha2/runtimeenforcement 75.00% (+75.00%) 🌟
github.com/NVIDIA/KAI-scheduler/pkg/apis/kai/v1/admission 21.05% (-0.07%) 👎
github.com/NVIDIA/KAI-scheduler/pkg/binder/binding/resourcereservation 88.27% (-0.45%) 👎
github.com/NVIDIA/KAI-scheduler/pkg/common/resources 39.13% (-3.22%) 👎
github.com/NVIDIA/KAI-scheduler/pkg/operator/operands/admission 87.07% (+0.23%) 👍

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/NVIDIA/KAI-scheduler/cmd/admission/app/app.go 0.00% (ø) 45 0 45
github.com/NVIDIA/KAI-scheduler/cmd/admission/app/options.go 0.00% (ø) 16 (+1) 0 16 (+1)
github.com/NVIDIA/KAI-scheduler/cmd/admission/main.go 0.00% (ø) 20 (+3) 0 20 (+3)
github.com/NVIDIA/KAI-scheduler/pkg/admission/webhook/v1alpha2/runtimeenforcement/runtime_enforcement.go 75.00% (+75.00%) 12 (+12) 9 (+9) 3 (+3) 🌟
github.com/NVIDIA/KAI-scheduler/pkg/apis/kai/v1/admission/admission.go 100.00% (ø) 16 (+1) 16 (+1) 0
github.com/NVIDIA/KAI-scheduler/pkg/apis/kai/v1/admission/zz_generated.deepcopy.go 0.00% (ø) 60 (+4) 0 60 (+4)
github.com/NVIDIA/KAI-scheduler/pkg/binder/binding/resourcereservation/resource_reservation.go 88.27% (-0.45%) 196 (+1) 173 23 (+1) 👎
github.com/NVIDIA/KAI-scheduler/pkg/common/resources/gpu_sharing.go 0.00% (ø) 53 (+7) 0 53 (+7)
github.com/NVIDIA/KAI-scheduler/pkg/operator/operands/admission/resources.go 90.43% (+0.21%) 94 (+2) 85 (+2) 9 👍

Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code.

Changed unit test files

  • github.com/NVIDIA/KAI-scheduler/pkg/admission/webhook/v1alpha2/runtimeenforcement/runtime_enforcement_test.go
  • github.com/NVIDIA/KAI-scheduler/pkg/apis/kai/v1/admission/admission_test.go
  • github.com/NVIDIA/KAI-scheduler/pkg/operator/operands/admission/resources_test.go

@omeryahud omeryahud force-pushed the omeryahud/explicitly-set-nvidia-runtimeclass-to-gpu-pods branch from 75fc3e6 to 94364d9 Compare November 4, 2025 05:48
@github-actions
Copy link

github-actions bot commented Nov 4, 2025

Merging this branch changes the coverage (3 decrease, 2 increase)

Impacted Packages Coverage Δ 🤖
github.com/NVIDIA/KAI-scheduler/cmd/admission 0.00% (ø)
github.com/NVIDIA/KAI-scheduler/cmd/admission/app 0.00% (ø)
github.com/NVIDIA/KAI-scheduler/pkg/admission/webhook/v1alpha2/runtimeenforcement 75.00% (+75.00%) 🌟
github.com/NVIDIA/KAI-scheduler/pkg/apis/kai/v1/admission 21.05% (-0.07%) 👎
github.com/NVIDIA/KAI-scheduler/pkg/binder/binding/resourcereservation 88.27% (-0.45%) 👎
github.com/NVIDIA/KAI-scheduler/pkg/common/resources 39.13% (-3.22%) 👎
github.com/NVIDIA/KAI-scheduler/pkg/operator/operands/admission 87.07% (+0.23%) 👍

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/NVIDIA/KAI-scheduler/cmd/admission/app/app.go 0.00% (ø) 45 0 45
github.com/NVIDIA/KAI-scheduler/cmd/admission/app/options.go 0.00% (ø) 16 (+1) 0 16 (+1)
github.com/NVIDIA/KAI-scheduler/cmd/admission/main.go 0.00% (ø) 20 (+3) 0 20 (+3)
github.com/NVIDIA/KAI-scheduler/pkg/admission/webhook/v1alpha2/runtimeenforcement/runtime_enforcement.go 75.00% (+75.00%) 12 (+12) 9 (+9) 3 (+3) 🌟
github.com/NVIDIA/KAI-scheduler/pkg/apis/kai/v1/admission/admission.go 100.00% (ø) 16 (+1) 16 (+1) 0
github.com/NVIDIA/KAI-scheduler/pkg/apis/kai/v1/admission/zz_generated.deepcopy.go 0.00% (ø) 60 (+4) 0 60 (+4)
github.com/NVIDIA/KAI-scheduler/pkg/binder/binding/resourcereservation/resource_reservation.go 88.27% (-0.45%) 196 (+1) 173 23 (+1) 👎
github.com/NVIDIA/KAI-scheduler/pkg/common/resources/gpu_sharing.go 0.00% (ø) 53 (+7) 0 53 (+7)
github.com/NVIDIA/KAI-scheduler/pkg/operator/operands/admission/resources.go 90.43% (+0.21%) 94 (+2) 85 (+2) 9 👍

Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code.

Changed unit test files

  • github.com/NVIDIA/KAI-scheduler/pkg/admission/webhook/v1alpha2/runtimeenforcement/runtime_enforcement_test.go
  • github.com/NVIDIA/KAI-scheduler/pkg/apis/kai/v1/admission/admission_test.go
  • github.com/NVIDIA/KAI-scheduler/pkg/operator/operands/admission/resources_test.go

enoodle
enoodle previously approved these changes Nov 4, 2025
@github-actions
Copy link

github-actions bot commented Nov 4, 2025

Merging this branch changes the coverage (3 decrease, 2 increase)

Impacted Packages Coverage Δ 🤖
github.com/NVIDIA/KAI-scheduler/cmd/admission 0.00% (ø)
github.com/NVIDIA/KAI-scheduler/cmd/admission/app 0.00% (ø)
github.com/NVIDIA/KAI-scheduler/pkg/admission/webhook/v1alpha2/runtimeenforcement 75.00% (+75.00%) 🌟
github.com/NVIDIA/KAI-scheduler/pkg/apis/kai/v1/admission 21.05% (-0.07%) 👎
github.com/NVIDIA/KAI-scheduler/pkg/binder/binding/resourcereservation 88.27% (-0.45%) 👎
github.com/NVIDIA/KAI-scheduler/pkg/common/resources 39.13% (-3.22%) 👎
github.com/NVIDIA/KAI-scheduler/pkg/operator/operands/admission 87.07% (+0.23%) 👍

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/NVIDIA/KAI-scheduler/cmd/admission/app/app.go 0.00% (ø) 45 0 45
github.com/NVIDIA/KAI-scheduler/cmd/admission/app/options.go 0.00% (ø) 16 (+1) 0 16 (+1)
github.com/NVIDIA/KAI-scheduler/cmd/admission/main.go 0.00% (ø) 20 (+3) 0 20 (+3)
github.com/NVIDIA/KAI-scheduler/pkg/admission/webhook/v1alpha2/runtimeenforcement/runtime_enforcement.go 75.00% (+75.00%) 12 (+12) 9 (+9) 3 (+3) 🌟
github.com/NVIDIA/KAI-scheduler/pkg/apis/kai/v1/admission/admission.go 100.00% (ø) 16 (+1) 16 (+1) 0
github.com/NVIDIA/KAI-scheduler/pkg/apis/kai/v1/admission/zz_generated.deepcopy.go 0.00% (ø) 60 (+4) 0 60 (+4)
github.com/NVIDIA/KAI-scheduler/pkg/binder/binding/resourcereservation/resource_reservation.go 88.27% (-0.45%) 196 (+1) 173 23 (+1) 👎
github.com/NVIDIA/KAI-scheduler/pkg/common/resources/gpu_sharing.go 0.00% (ø) 53 (+7) 0 53 (+7)
github.com/NVIDIA/KAI-scheduler/pkg/operator/operands/admission/resources.go 90.43% (+0.21%) 94 (+2) 85 (+2) 9 👍

Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code.

Changed unit test files

  • github.com/NVIDIA/KAI-scheduler/pkg/admission/webhook/v1alpha2/runtimeenforcement/runtime_enforcement_test.go
  • github.com/NVIDIA/KAI-scheduler/pkg/apis/kai/v1/admission/admission_test.go
  • github.com/NVIDIA/KAI-scheduler/pkg/operator/operands/admission/resources_test.go

@github-actions
Copy link

github-actions bot commented Nov 4, 2025

Merging this branch changes the coverage (3 decrease, 2 increase)

Impacted Packages Coverage Δ 🤖
github.com/NVIDIA/KAI-scheduler/cmd/admission 0.00% (ø)
github.com/NVIDIA/KAI-scheduler/cmd/admission/app 0.00% (ø)
github.com/NVIDIA/KAI-scheduler/pkg/admission/webhook/v1alpha2/runtimeenforcement 75.00% (+75.00%) 🌟
github.com/NVIDIA/KAI-scheduler/pkg/apis/kai/v1/admission 21.05% (-0.07%) 👎
github.com/NVIDIA/KAI-scheduler/pkg/binder/binding/resourcereservation 88.27% (-0.45%) 👎
github.com/NVIDIA/KAI-scheduler/pkg/common/resources 39.13% (-3.22%) 👎
github.com/NVIDIA/KAI-scheduler/pkg/operator/operands/admission 87.07% (+0.23%) 👍

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/NVIDIA/KAI-scheduler/cmd/admission/app/app.go 0.00% (ø) 45 0 45
github.com/NVIDIA/KAI-scheduler/cmd/admission/app/options.go 0.00% (ø) 16 (+1) 0 16 (+1)
github.com/NVIDIA/KAI-scheduler/cmd/admission/main.go 0.00% (ø) 20 (+3) 0 20 (+3)
github.com/NVIDIA/KAI-scheduler/pkg/admission/webhook/v1alpha2/runtimeenforcement/runtime_enforcement.go 75.00% (+75.00%) 12 (+12) 9 (+9) 3 (+3) 🌟
github.com/NVIDIA/KAI-scheduler/pkg/apis/kai/v1/admission/admission.go 100.00% (ø) 16 (+1) 16 (+1) 0
github.com/NVIDIA/KAI-scheduler/pkg/apis/kai/v1/admission/zz_generated.deepcopy.go 0.00% (ø) 60 (+4) 0 60 (+4)
github.com/NVIDIA/KAI-scheduler/pkg/binder/binding/resourcereservation/resource_reservation.go 88.27% (-0.45%) 196 (+1) 173 23 (+1) 👎
github.com/NVIDIA/KAI-scheduler/pkg/common/resources/gpu_sharing.go 0.00% (ø) 53 (+7) 0 53 (+7)
github.com/NVIDIA/KAI-scheduler/pkg/operator/operands/admission/resources.go 90.43% (+0.21%) 94 (+2) 85 (+2) 9 👍

Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code.

Changed unit test files

  • github.com/NVIDIA/KAI-scheduler/pkg/admission/webhook/v1alpha2/runtimeenforcement/runtime_enforcement_test.go
  • github.com/NVIDIA/KAI-scheduler/pkg/apis/kai/v1/admission/admission_test.go
  • github.com/NVIDIA/KAI-scheduler/pkg/operator/operands/admission/resources_test.go

@enoodle enoodle merged commit f11bc30 into NVIDIA:main Nov 4, 2025
4 checks passed
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.

3 participants