Skip to content

Commit 9601b45

Browse files
idsulikglours
authored andcommitted
loaders fixes
Signed-off-by: Suleiman Dibirov <[email protected]>
1 parent 5769840 commit 9601b45

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

loader/loader.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -774,6 +774,11 @@ func secretConfigDecoderHook(from, to reflect.Type, data interface{}) (interface
774774
if val, ok := ext[types.SecretConfigXValue].(string); ok {
775775
// Return a map with the Content field populated
776776
v["Content"] = val
777+
delete(ext, types.SecretConfigXValue)
778+
779+
if len(ext) == 0 {
780+
delete(v, "#extensions")
781+
}
777782
}
778783
}
779784
}

0 commit comments

Comments
 (0)