From 27566b3e690abe769ac72bdbbd9f4e8d59df4c2b Mon Sep 17 00:00:00 2001 From: Marcin Franczyk Date: Fri, 28 Mar 2025 10:08:25 +0100 Subject: [PATCH] Remove MatchVersionRange operator Signed-off-by: Marcin Franczyk --- api/nfd/v1alpha1/types.go | 3 --- pkg/apis/nfd/nodefeaturerule/expression.go | 1 - 2 files changed, 4 deletions(-) diff --git a/api/nfd/v1alpha1/types.go b/api/nfd/v1alpha1/types.go index ee319999c..c7994bd33 100644 --- a/api/nfd/v1alpha1/types.go +++ b/api/nfd/v1alpha1/types.go @@ -388,9 +388,6 @@ const ( // MatchIsFalse returns true if the input holds the value "false". The // expression must not have any values. MatchIsFalse MatchOp = "IsFalse" - // MatchVersionRange returns true if the input is version that falls into the - // specified version range. Both the input and value must be semantic versions. - MatchVersionRange MatchOp = "VersionRange" ) const ( diff --git a/pkg/apis/nfd/nodefeaturerule/expression.go b/pkg/apis/nfd/nodefeaturerule/expression.go index 0e0ef86ce..9bbc1dcc0 100644 --- a/pkg/apis/nfd/nodefeaturerule/expression.go +++ b/pkg/apis/nfd/nodefeaturerule/expression.go @@ -53,7 +53,6 @@ var matchOps = map[nfdv1alpha1.MatchOp]struct{}{ nfdv1alpha1.MatchGeLe: {}, nfdv1alpha1.MatchIsTrue: {}, nfdv1alpha1.MatchIsFalse: {}, - nfdv1alpha1.MatchVersionRange: {}, } // evaluateMatchExpression evaluates the MatchExpression against a single input value.