Skip to content

Commit 589a371

Browse files
authored
Removed gpu operator as dependency (#438)
1 parent 1debf94 commit 589a371

File tree

6 files changed

+3
-74
lines changed

6 files changed

+3
-74
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
66

77
## [Unreleased]
88

9+
### Removed
10+
- Removed unused code that required gpu-operator as a dependency
11+
912
## [v0.8.2] - 2025-08-25
1013

1114
### Fixed

go.mod

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ go 1.24.4
44

55
require (
66
github.com/NVIDIA/go-nvml v0.12.4-1
7-
github.com/NVIDIA/gpu-operator v1.8.3-0.20250724212111-616690d88d86
87
github.com/argoproj/argo-workflows/v3 v3.6.4
98
github.com/dustin/go-humanize v1.0.1
109
github.com/gin-contrib/pprof v1.5.2
@@ -70,8 +69,6 @@ require (
7069
require (
7170
cel.dev/expr v0.19.1 // indirect
7271
github.com/Microsoft/go-winio v0.6.2 // indirect
73-
github.com/NVIDIA/k8s-kata-manager v0.2.3 // indirect
74-
github.com/NVIDIA/k8s-operator-libs v0.0.0-20250311214045-7d667fbaa7ac // indirect
7572
github.com/NYTimes/gziphandler v1.1.1 // indirect
7673
github.com/antlr4-go/antlr/v4 v4.13.1 // indirect
7774
github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 // indirect
@@ -144,7 +141,6 @@ require (
144141
github.com/opencontainers/selinux v1.11.1 // indirect
145142
github.com/pelletier/go-toml/v2 v2.2.3 // indirect
146143
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
147-
github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring v0.81.0 // indirect
148144
github.com/prometheus/client_model v0.6.2 // indirect
149145
github.com/prometheus/common v0.63.0 // indirect
150146
github.com/prometheus/procfs v0.16.0 // indirect

go.sum

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,6 @@ github.com/Microsoft/go-winio v0.6.2 h1:F2VQgta7ecxGYO8k3ZZz3RS8fVIXVxONVUPlNERo
1111
github.com/Microsoft/go-winio v0.6.2/go.mod h1:yd8OoFMLzJbo9gZq8j5qaps8bJ9aShtEA8Ipt1oGCvU=
1212
github.com/NVIDIA/go-nvml v0.12.4-1 h1:WKUvqshhWSNTfm47ETRhv0A0zJyr1ncCuHiXwoTrBEc=
1313
github.com/NVIDIA/go-nvml v0.12.4-1/go.mod h1:8Llmj+1Rr+9VGGwZuRer5N/aCjxGuR5nPb/9ebBiIEQ=
14-
github.com/NVIDIA/gpu-operator v1.8.3-0.20250724212111-616690d88d86 h1:KcEKuIVSUY5XJZTzLjbpD3DRPcQTLwkX1DyzuCZHYKU=
15-
github.com/NVIDIA/gpu-operator v1.8.3-0.20250724212111-616690d88d86/go.mod h1:EkmCOAWVMphjgnRpbqXhpArJQrOJjbKsoHcrklnisfU=
16-
github.com/NVIDIA/k8s-kata-manager v0.2.3 h1:d5+gRFqU5el/fKMXhHUaPY7haj+dbHL4nDsO/q05LBo=
17-
github.com/NVIDIA/k8s-kata-manager v0.2.3/go.mod h1:xx5OUiMsHyKbyX0JjKHqAftvqS8vx00LFn/5EaMdtB4=
18-
github.com/NVIDIA/k8s-operator-libs v0.0.0-20250311214045-7d667fbaa7ac h1:zY0RHvLzhlZlRV8XZ30foz3cGpflVZTwMpegq+nVePA=
19-
github.com/NVIDIA/k8s-operator-libs v0.0.0-20250311214045-7d667fbaa7ac/go.mod h1:2d+9jpnO7PxsuFJg3Mt/SHmsauD80USc00zRMYba++E=
2014
github.com/NYTimes/gziphandler v1.1.1 h1:ZUDjpQae29j0ryrS0u/B8HZfJBtBQHjqw2rQ2cqUQ3I=
2115
github.com/NYTimes/gziphandler v1.1.1/go.mod h1:n/CVRwUEOgIxrgPvAQhUUr9oeUtvrhMomdKFjzJNB0c=
2216
github.com/Pallinder/go-randomdata v1.2.0 h1:DZ41wBchNRb/0GfsePLiSwb0PHZmT67XY00lCDlaYPg=
@@ -272,8 +266,6 @@ github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRI
272266
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
273267
github.com/prashantv/gostub v1.1.0 h1:BTyx3RfQjRHnUWaGF9oQos79AlQ5k8WNktv7VGvVH4g=
274268
github.com/prashantv/gostub v1.1.0/go.mod h1:A5zLQHz7ieHGG7is6LLXLz7I8+3LZzsrV0P1IAHhP5U=
275-
github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring v0.81.0 h1:mSii7z+TihzdeULnGjLnNikgtDbeViY/wW8s3430rhE=
276-
github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring v0.81.0/go.mod h1:YfnEQzw7tUQa0Sjiz8V6QFc6JUGE+i5wybsjc3EOKn8=
277269
github.com/prometheus/client_golang v1.22.0 h1:rb93p9lokFEsctTys46VnV1kLCDpVZ0a/Y92Vm0Zc6Q=
278270
github.com/prometheus/client_golang v1.22.0/go.mod h1:R7ljNsLXhuQXYZYtw6GAE9AZg8Y7vEW5scdCXrWRXC0=
279271
github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=

pkg/common/gpu_operator_discovery/cdi.go

Lines changed: 0 additions & 46 deletions
This file was deleted.

test/e2e/modules/context/connectivity.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import (
1111

1212
lws "sigs.k8s.io/lws/api/leaderworkerset/v1"
1313

14-
nvidiav1 "github.com/NVIDIA/gpu-operator/api/nvidia/v1"
1514
"k8s.io/api/node/v1alpha1"
1615
"k8s.io/client-go/kubernetes"
1716
"k8s.io/client-go/rest"
@@ -66,9 +65,6 @@ func initConnectivity() error {
6665
if err = kwokopv1beta1.AddToScheme(controllerClient.Scheme()); err != nil {
6766
return fmt.Errorf("failed to add scheduling v1beta1 to scheme: %w", err)
6867
}
69-
if err = nvidiav1.AddToScheme(controllerClient.Scheme()); err != nil {
70-
return fmt.Errorf("failed to add nvidiav1 to scheme: %w", err)
71-
}
7268
if err = lws.AddToScheme(controllerClient.Scheme()); err != nil {
7369
return fmt.Errorf("failed to add lws to scheme: %w", err)
7470
}

test/e2e/modules/resources/capacity/validators.go

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ import (
1414
"k8s.io/apimachinery/pkg/api/errors"
1515
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
1616
"k8s.io/client-go/kubernetes"
17-
"sigs.k8s.io/controller-runtime/pkg/client"
18-
19-
gpuoperatordiscovery "github.com/NVIDIA/KAI-scheduler/pkg/common/gpu_operator_discovery"
2017
)
2118

2219
func SkipIfInsufficientClusterResources(clientset kubernetes.Interface, resourceRequest *ResourceList) {
@@ -74,15 +71,6 @@ func SkipIfNonHomogeneousGpuCounts(clientset kubernetes.Interface) int {
7471
return maps.Keys(gpuCounts)[0]
7572
}
7673

77-
func SkipIfCDIEnabled(ctx context.Context, client client.Client) {
78-
cdiEnabled, err := gpuoperatordiscovery.IsCdiEnabled(ctx, client)
79-
gomega.Expect(err).NotTo(gomega.HaveOccurred(), "Failed to check if CDI is enabled")
80-
81-
if cdiEnabled {
82-
ginkgo.Skip("CDI is enabled")
83-
}
84-
}
85-
8674
func SkipIfCSIDriverIsMissing(ctx context.Context, client kubernetes.Interface, name string) {
8775
_, err := client.StorageV1().CSIDrivers().Get(ctx, name, metav1.GetOptions{})
8876
if err != nil && errors.IsNotFound(err) {

0 commit comments

Comments
 (0)