refactor: abbreviate and move up comment

Signed-off-by: bassg0navy <bassgonavy@gmail.com>
pull/31591/head
bassg0navy 7 months ago
parent 3b532c64dd
commit 8988b46739

@ -67,6 +67,8 @@ annotations:
return ociAnnotations
}
// Non-ASCII characters in annotation values are escaped
// to ensure compatibility with registries that strictly follow OCI spec
func escapeNonASCII(s string) string {
var result strings.Builder
result.Grow(len(s)) // Pre-allocate for efficiency
@ -83,8 +85,6 @@ func escapeNonASCII(s string) string {
}
// generateChartOCIAnnotations will generate OCI annotations from the provided chart
// Non-ASCII characters in annotation values are escaped as \uXXXX sequences
// to ensure compatibility with registries that strictly follow OCI spec recommendations.
func generateChartOCIAnnotations(meta *chart.Metadata, creationTime string) map[string]string {
chartOCIAnnotations := map[string]string{}

Loading…
Cancel
Save