Skip to content

Commit

Permalink
cache: fix generated simple affinity expression.
Browse files Browse the repository at this point in the history
Fixes broken e2e case in test03.

Signed-off-by: Krisztian Litkey <[email protected]>
  • Loading branch information
klihub committed Mar 15, 2024
1 parent e634309 commit 08298f4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/resmgr/cache/affinity.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import (
"sigs.k8s.io/yaml"

resmgr "github.com/containers/nri-plugins/pkg/apis/resmgr/v1alpha1"
"github.com/containers/nri-plugins/pkg/kubernetes"
)

const (
Expand Down Expand Up @@ -169,7 +168,7 @@ func (pca *podContainerAffinity) parseSimple(pod *pod, value string, weight int3
&Affinity{
Scope: podScope,
Match: &resmgr.Expression{
Key: kubernetes.ContainerNameLabel,
Key: "name",
Op: op,
Values: others,
},
Expand Down

0 comments on commit 08298f4

Please sign in to comment.