From 1075c431b2ab33eafe56a942e6910ce926400dea Mon Sep 17 00:00:00 2001 From: Oreon Lothamer Date: Thu, 7 Sep 2023 06:32:55 -1000 Subject: [PATCH] fix: check len(parts) !=3 Signed-off-by: Oreon Lothamer --- util/argo/resource_tracking.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/argo/resource_tracking.go b/util/argo/resource_tracking.go index 175eb6f865fc2..bc58172397ffe 100644 --- a/util/argo/resource_tracking.go +++ b/util/argo/resource_tracking.go @@ -180,7 +180,7 @@ func (rt *resourceTracking) ParseAppInstanceValue(value string) (*AppInstanceVal var appInstanceValue AppInstanceValue parts := strings.SplitN(value, ":", 3) appInstanceValue.ApplicationName = parts[0] - if len(parts) < 2 { + if len(parts) != 3 { return nil, WrongResourceTrackingFormat } groupParts := strings.Split(parts[1], "/")