From aee540a27741090b28bad3952d752dee8f65ad20 Mon Sep 17 00:00:00 2001 From: Jan Larwig Date: Fri, 28 Nov 2025 17:20:15 +0100 Subject: [PATCH] doc: fix mapstructure configuration comments Signed-off-by: Jan Larwig --- pkg/apis/options/load.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/apis/options/load.go b/pkg/apis/options/load.go index 20d04383..d0dd22df 100644 --- a/pkg/apis/options/load.go +++ b/pkg/apis/options/load.go @@ -95,10 +95,10 @@ func Decode(input interface{}, result interface{}) error { ), Metadata: nil, // Don't track any metadata Result: result, // Decode the result into the prefilled options - TagName: "yaml", // Parse all fields that use the json tag + TagName: "yaml", // Parse all fields that use the yaml tag ZeroFields: false, // Don't clean the default values from the result map (options) ErrorUnused: true, // Throw an error if keys have been used that aren't mapped to any struct fields - IgnoreUntaggedFields: true, // Ignore fields in structures that aren't tagged with json + IgnoreUntaggedFields: true, // Ignore fields in structures that aren't tagged with yaml }) if err != nil { return fmt.Errorf("error creating decoder for config: %w", err)