Skip to content

Commit ebb5223

Browse files
committed
fix: remove uneeded log on ofed version
Signed-off-by: Fred Rolland <[email protected]>
1 parent e1140d2 commit ebb5223

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

go.mod

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ module github.com/Mellanox/network-operator
33
go 1.23.3
44

55
require (
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

go.sum

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ github.com/Azure/go-ansiterm v0.0.0-20250102033503-faa5f7b0171c h1:udKWzYgxTojEK
22
github.com/Azure/go-ansiterm v0.0.0-20250102033503-faa5f7b0171c/go.mod h1:xomTg63KZ2rFqZQzSB4Vz2SUXa1BpHTVz9L5PTmPC4E=
33
github.com/MakeNowJust/heredoc v1.0.0 h1:cXCdzVdstXyiTqTvfqk9SDHpKNjxuom+DOlyEeQ4pzQ=
44
github.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=
75
github.com/Mellanox/maintenance-operator/api v0.2.2 h1:7bl/txeHv49NdubQ72AqC7tLXa9oJrZuqk27TG5CybM=
86
github.com/Mellanox/maintenance-operator/api v0.2.2/go.mod h1:pkd4TxjMFItohSXT0D1JhXB/E3d8jE5asBzxNATwT2s=
97
github.com/NVIDIA/k8s-operator-libs v0.0.0-20250512170135-63bc7baf3f6f h1:nU6yhJjS7eSVWBxnUvF+RIEdTPG1zWKG2Xgy4FJ7JjU=

pkg/state/state_ofed.go

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff 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
622621
func (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+
reqLogger.V(consts.LogLevelDebug).Info("Generating ofed driver image name for version: %v",
624+
"version", cr.Spec.OFEDDriver.Version)
629625

630626
if precompiledExists {
631627
return fmt.Sprintf(precompiledImageFormat,

0 commit comments

Comments
 (0)