Skip to content

Commit

Permalink
loaders fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Suleiman Dibirov <idsulik@gmail.com>
  • Loading branch information
idsulik committed Sep 9, 2024
1 parent 250b905 commit b65f7c5
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 b65f7c5

Please sign in to comment.