Skip to content

Commit 0d3207a

Browse files
committed
nrt: use nrt API helper constants
we can use constants added in the helper package and already available in the code we require. No intended changes in behavior. Signed-off-by: Francesco Romani <[email protected]>
1 parent 7f9b291 commit 0d3207a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/noderesourcetopology/pluginhelpers.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import (
2727

2828
"github.com/go-logr/logr"
2929
topologyv1alpha2 "github.com/k8stopologyawareschedwg/noderesourcetopology-api/pkg/apis/topology/v1alpha2"
30+
"github.com/k8stopologyawareschedwg/noderesourcetopology-api/pkg/apis/topology/v1alpha2/helper"
3031
"github.com/k8stopologyawareschedwg/noderesourcetopology-api/pkg/apis/topology/v1alpha2/helper/numanode"
3132

3233
ctrlclient "sigs.k8s.io/controller-runtime/pkg/client"
@@ -105,7 +106,7 @@ func createNUMANodeList(lh logr.Logger, zones topologyv1alpha2.ZoneList) NUMANod
105106
nodes := NUMANodeList{}
106107
// filter non Node zones and create idToIdx lookup array
107108
for i, zone := range zones {
108-
if zone.Type != "Node" {
109+
if zone.Type != helper.ZoneTypeNUMANode {
109110
continue
110111
}
111112

0 commit comments

Comments
 (0)