From b39bb0db634d3a83412483c353ca7876e70a320d Mon Sep 17 00:00:00 2001 From: Wang Yan Date: Wed, 14 Apr 2021 13:25:19 +0800 Subject: [PATCH] fix immutable issue (#14643) Fixes #14568 Signed-off-by: Wang Yan --- src/pkg/immutabletag/match/rule/match.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pkg/immutabletag/match/rule/match.go b/src/pkg/immutabletag/match/rule/match.go index d54d31908..4963e2c10 100644 --- a/src/pkg/immutabletag/match/rule/match.go +++ b/src/pkg/immutabletag/match/rule/match.go @@ -48,7 +48,7 @@ func (rm *Matcher) Match(pid int64, c iselector.Candidate) (bool, error) { // match tag according to the tag selectors var tagCandidates []*iselector.Candidate tagSelectors := r.TagSelectors - if len(tagSelectors) < 0 { + if len(tagSelectors) < 1 { continue } tagSelector := r.TagSelectors[0]