From 60286d4f9eb5a691f425a8db74488a638c9771fe Mon Sep 17 00:00:00 2001 From: Andreas Gkizas Date: Thu, 7 Mar 2024 12:02:31 +0200 Subject: [PATCH] udpating comment --- utils/hints.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/hints.go b/utils/hints.go index 7ffbf083b..cde1ae185 100644 --- a/utils/hints.go +++ b/utils/hints.go @@ -215,7 +215,7 @@ func GenerateHints(annotations mapstr.M, container, prefix string, allSupportedH parts := strings.Split(key, "/") if len(parts) == 2 { hintKey := fmt.Sprintf("%s.%s", parts[0], parts[1]) - //We check whether the provided annotation follows the supported format and vocabulary. The check happens for annotations that start with co.elastic.hints + //We check whether the provided annotation follows the supported format and vocabulary. The check happens for annotations that have prefix co.elastic found = checkSupportedHints(parts[1], allSupportedHints) // Insert only if there is no entry already. container level annotations take @@ -239,7 +239,7 @@ func GenerateHints(annotations mapstr.M, container, prefix string, allSupportedH if strings.HasPrefix(hintKey, container) { // Split the key to get part[1] to be the hint parts := strings.Split(hintKey, "/") - //We check whether the provided annotation follows the supported format and vocabulary. The check happens for annotations that start with co.elastic.hints + //We check whether the provided annotation follows the supported format and vocabulary. The check happens for annotations that have prefix co.elastic found = checkSupportedHints(parts[1], allSupportedHints) if len(parts) == 2 { // key will be the hint type