Skip to content

Commit

Permalink
loaders fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Suleiman Dibirov <[email protected]>
  • Loading branch information
idsulik authored and glours committed Sep 9, 2024
1 parent 5769840 commit 9601b45
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions loader/loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
}
}
}
Expand Down

0 comments on commit 9601b45

Please sign in to comment.