File tree Expand file tree Collapse file tree 3 files changed +2
-9
lines changed Expand file tree Collapse file tree 3 files changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ module github.com/Mellanox/network-operator
33go 1.23.3
44
55require (
6- github.com/Masterminds/semver/v3 v3.3.1
76 github.com/Mellanox/maintenance-operator/api v0.2.2
87 github.com/NVIDIA/k8s-operator-libs v0.0.0-20250512170135-63bc7baf3f6f
98 github.com/caarlos0/env/v6 v6.10.1
Original file line number Diff line number Diff line change @@ -2,8 +2,6 @@ github.com/Azure/go-ansiterm v0.0.0-20250102033503-faa5f7b0171c h1:udKWzYgxTojEK
22github.com/Azure/go-ansiterm v0.0.0-20250102033503-faa5f7b0171c /go.mod h1:xomTg63KZ2rFqZQzSB4Vz2SUXa1BpHTVz9L5PTmPC4E =
33github.com/MakeNowJust/heredoc v1.0.0 h1:cXCdzVdstXyiTqTvfqk9SDHpKNjxuom+DOlyEeQ4pzQ =
44github.com/MakeNowJust/heredoc v1.0.0 /go.mod h1:mG5amYoWBHf8vpLOuehzbGGw0EHxpZZ6lCpQ4fNJ8LE =
5- github.com/Masterminds/semver/v3 v3.3.1 h1:QtNSWtVZ3nBfk8mAOu/B6v7FMJ+NHTIgUPi7rj+4nv4 =
6- github.com/Masterminds/semver/v3 v3.3.1 /go.mod h1:4V+yj/TJE1HU9XfppCwVMZq3I84lprf4nC11bSS5beM =
75github.com/Mellanox/maintenance-operator/api v0.2.2 h1:7bl/txeHv49NdubQ72AqC7tLXa9oJrZuqk27TG5CybM =
86github.com/Mellanox/maintenance-operator/api v0.2.2 /go.mod h1:pkd4TxjMFItohSXT0D1JhXB/E3d8jE5asBzxNATwT2s =
97github.com/NVIDIA/k8s-operator-libs v0.0.0-20250512170135-63bc7baf3f6f h1:nU6yhJjS7eSVWBxnUvF+RIEdTPG1zWKG2Xgy4FJ7JjU =
Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ import (
2525 "strings"
2626 "time"
2727
28- "github.com/Masterminds/semver/v3"
2928 "github.com/NVIDIA/k8s-operator-libs/pkg/upgrade"
3029 "github.com/go-logr/logr"
3130 osconfigv1 "github.com/openshift/api/config/v1"
@@ -621,11 +620,8 @@ func (s *stateOFED) getInitContainerConfig(
621620// getMofedDriverImageName generates MOFED driver image name based on the driver version specified in CR
622621func (s * stateOFED ) getMofedDriverImageName (cr * mellanoxv1alpha1.NicClusterPolicy ,
623622 pool * nodeinfo.NodePool , precompiledExists bool , reqLogger logr.Logger ) string {
624- curDriverVer , err := semver .NewVersion (cr .Spec .OFEDDriver .Version )
625- if err != nil {
626- reqLogger .V (consts .LogLevelDebug ).Info ("failed to parse ofed driver version as semver" )
627- }
628- reqLogger .V (consts .LogLevelDebug ).Info ("Generating ofed driver image name for version: %v" , "version" , curDriverVer )
623+
624+ reqLogger .V (consts .LogLevelDebug ).Info ("Generating ofed driver image name for version: %v" , "version" , cr .Spec .OFEDDriver .Version )
629625
630626 if precompiledExists {
631627 return fmt .Sprintf (precompiledImageFormat ,
You can’t perform that action at this time.
0 commit comments