From a1f1c2d32f4c679e48f32244ff9059cc3fa660bd Mon Sep 17 00:00:00 2001 From: Sam Wronski Date: Thu, 17 Jun 2021 11:47:56 -0700 Subject: [PATCH] Add documentation --- kyaml/yaml/rnode.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kyaml/yaml/rnode.go b/kyaml/yaml/rnode.go index 328bd07f0..7bc2ea483 100644 --- a/kyaml/yaml/rnode.go +++ b/kyaml/yaml/rnode.go @@ -546,6 +546,8 @@ func (rn *RNode) GetBinaryDataMap() map[string]string { return result } +// GetValidatedDataMap retrieves the data map and returns an error if the data +// map contains entries which are not included in the expected set func (rn *RNode) GetValidatedDataMap(expected []string) (map[string]string, error) { dataMap := rn.GetDataMap() err := rn.validateDataMap(dataMap, expected)