From 9601b457e8045a643e0e5dbdf94fa1ff812f6317 Mon Sep 17 00:00:00 2001 From: Suleiman Dibirov Date: Mon, 9 Sep 2024 15:49:22 +0300 Subject: [PATCH] loaders fixes Signed-off-by: Suleiman Dibirov --- loader/loader.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/loader/loader.go b/loader/loader.go index 933a596a..25d2d0c6 100644 --- a/loader/loader.go +++ b/loader/loader.go @@ -774,6 +774,11 @@ func secretConfigDecoderHook(from, to reflect.Type, data interface{}) (interface if val, ok := ext[types.SecretConfigXValue].(string); ok { // Return a map with the Content field populated v["Content"] = val + delete(ext, types.SecretConfigXValue) + + if len(ext) == 0 { + delete(v, "#extensions") + } } } }