3
0

Add applications as alias for yaml decoding

This commit is contained in:
Tomaž Jerman
2023-04-14 08:53:08 +02:00
parent b1c56e74bb
commit b6c24588a9
2 changed files with 2 additions and 2 deletions

View File

@@ -74,7 +74,7 @@ application: {
yaml: {
supportMappedInput: true
mappedField: "Name"
identKeyAlias: ["apps"]
identKeyAlias: ["applications", "apps"]
}
store: {
handleField: "Name"

View File

@@ -106,7 +106,7 @@ func (d *auxYamlDoc) UnmarshalYAML(n *yaml.Node) (err error) {
switch kv {
// Decode all resources under the system component
case "application", "apps":
case "application", "applications", "apps":
if y7s.IsMapping(v) {
aux, err = d.unmarshalApplicationMap(dctx, v)
d.nodes = append(d.nodes, aux...)