From a1ffe0e99802ba2a9e020e300f90299ab6f54adf Mon Sep 17 00:00:00 2001 From: Sergey Passichenko Date: Mon, 30 Oct 2023 15:45:17 -0700 Subject: [PATCH] unset metadata --- pkg/star/static/walk.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/star/static/walk.go b/pkg/star/static/walk.go index 1eb43ea2..96352fc7 100644 --- a/pkg/star/static/walk.go +++ b/pkg/star/static/walk.go @@ -528,6 +528,7 @@ func (w *walker) mutateMetadataFn(f *featurev1beta1.StaticFeature) metadataFn { return func(ast *starFeatureAST) error { metadataProto := f.FeatureOld.GetMetadata() if metadataProto == nil { + ast.unset(MetadataAttrName) return nil } metadataStarDict, err := w.genJSONStruct(metadataProto, nil)