add to BuildAnnotations

This commit is contained in:
Mengqi Yu
2021-11-19 12:13:12 -08:00
parent dfc627068b
commit bd7bad19a1
3 changed files with 11 additions and 7 deletions

View File

@@ -41,6 +41,11 @@ const (
// Deprecated: use IdAnnotation instead.
LegacyIdAnnotation = "config.k8s.io/id"
// InternalAnnotationsMigrationResourceIDAnnotation is used to uniquely identify
// resources during round trip to and from a function execution. We will use it
// to track the internal annotations and reconcile them if needed.
InternalAnnotationsMigrationResourceIDAnnotation = "internal.config.k8s.io/annotations-migration-resource-id"
)
func GetFileAnnotations(rn *yaml.RNode) (string, string, error) {