From f7ca4fa1062baa95b97b8fd50218599db01b417c Mon Sep 17 00:00:00 2001 From: Phani Teja Marupaka Date: Wed, 27 May 2020 11:47:31 -0700 Subject: [PATCH] Suggested Changes --- kyaml/fieldmeta/fieldmeta.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kyaml/fieldmeta/fieldmeta.go b/kyaml/fieldmeta/fieldmeta.go index c8597a29e..b24a792a9 100644 --- a/kyaml/fieldmeta/fieldmeta.go +++ b/kyaml/fieldmeta/fieldmeta.go @@ -81,7 +81,9 @@ func (fm *FieldMeta) Read(n *yaml.RNode) error { return nil } -// processShortHand parses the comment for short hand ref and loads schema to fm +// processShortHand parses the comment for short hand ref, loads schema to fm +// and returns true if successful, returns false for any other cases and not throw +// error, as the comment might not be a setter ref func (fm *FieldMeta) processShortHand(comment string) bool { input := map[string]string{} err := json.Unmarshal([]byte(comment), &input)