From b6c24588a994b0bfc4c26fdb80e89333a0fa80b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Toma=C5=BE=20Jerman?= Date: Fri, 14 Apr 2023 08:53:08 +0200 Subject: [PATCH] Add applications as alias for yaml decoding --- server/system/application.cue | 2 +- server/system/envoy/yaml_decode.gen.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/system/application.cue b/server/system/application.cue index 668c9b6c5..c8d443ddc 100644 --- a/server/system/application.cue +++ b/server/system/application.cue @@ -74,7 +74,7 @@ application: { yaml: { supportMappedInput: true mappedField: "Name" - identKeyAlias: ["apps"] + identKeyAlias: ["applications", "apps"] } store: { handleField: "Name" diff --git a/server/system/envoy/yaml_decode.gen.go b/server/system/envoy/yaml_decode.gen.go index f6fdf948c..b37d44112 100644 --- a/server/system/envoy/yaml_decode.gen.go +++ b/server/system/envoy/yaml_decode.gen.go @@ -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...)