From b01da61d8338894c12c0c9b539a822d76c2fa600 Mon Sep 17 00:00:00 2001 From: Sam Wronski Date: Thu, 17 Jun 2021 16:12:09 -0700 Subject: [PATCH] Update argument name --- kyaml/yaml/rnode.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kyaml/yaml/rnode.go b/kyaml/yaml/rnode.go index 7bc2ea483..021133ba5 100644 --- a/kyaml/yaml/rnode.go +++ b/kyaml/yaml/rnode.go @@ -547,10 +547,10 @@ func (rn *RNode) GetBinaryDataMap() map[string]string { } // 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) { +// map contains entries which are not included in the expectedKeys set. +func (rn *RNode) GetValidatedDataMap(expectedKeys []string) (map[string]string, error) { dataMap := rn.GetDataMap() - err := rn.validateDataMap(dataMap, expected) + err := rn.validateDataMap(dataMap, expectedKeys) return dataMap, err }