Skip to content

Commit

Permalink
adding comments
Browse files Browse the repository at this point in the history
  • Loading branch information
gizas committed Apr 16, 2024
1 parent 53778dd commit 2b6b17b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions utils/hints.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ func GenerateHints(annotations mapstr.M, container, prefix string, validate bool
allSupportedHints = append(allSupportedHints, metric)
incorrecthints = checkSupportedHintsSets(annotations, prefix, metric, "metrics", allSupportedHints, incorrecthints)
}
} //End of Annotation Check
} //end of annotation check

for key, rawValue := range entries {
enumeratedmodules := []string{}
Expand Down Expand Up @@ -266,7 +266,7 @@ func GenerateHints(annotations mapstr.M, container, prefix string, validate bool
}
//We check whether the provided annotation follows the supported format and vocabulary. The check happens for annotations that have prefix co.elastic
_, incorrecthint = checkSupportedHints(parts[1], key, allSupportedHints)
} //end of check
} //end of annotation check

// Insert only if there is no entry already. container level annotations take
// higher priority.
Expand Down Expand Up @@ -317,7 +317,7 @@ func GenerateHints(annotations mapstr.M, container, prefix string, validate bool
}
//We check whether the provided annotation follows the supported format and vocabulary. The check happens for annotations that have prefix co.elastic
_, incorrecthint = checkSupportedHints(parts[1], key, allSupportedHints)
} //end of check
} //end of annotation check

if len(parts) == 2 {
// key will be the hint type
Expand Down

0 comments on commit 2b6b17b

Please sign in to comment.