From ed4d75504f68706a6a4f81200794135f74027ad2 Mon Sep 17 00:00:00 2001 From: yutaroyamanaka Date: Wed, 5 Jul 2023 22:08:12 +0900 Subject: [PATCH] add a comment --- api/resource/resource.go | 1 + 1 file changed, 1 insertion(+) diff --git a/api/resource/resource.go b/api/resource/resource.go index b14395498e3..53c869da2b2 100644 --- a/api/resource/resource.go +++ b/api/resource/resource.go @@ -523,6 +523,7 @@ func mergeStringMapsWithBuildAnnotations(maps ...map[string]string) map[string]s result := mergeStringMaps(maps...) for i := range BuildAnnotations { if len(maps) > 0 { + // not delete BuildAnnotationsGenAddHashSuffix to work with kustomize.config.k8s.io/needs-hash annotation in generator options if BuildAnnotations[i] == utils.BuildAnnotationsGenAddHashSuffix { continue }