From ad4fe310ee285209655228251204407332ce0851 Mon Sep 17 00:00:00 2001 From: "Rule Timothy (VM/EMT3)" Date: Mon, 11 Mar 2024 08:15:05 +0100 Subject: [PATCH] Add stacked bool to StackRuntime object. Signed-off-by: Rule Timothy (VM/EMT3) --- code/go/dse/kind/Stack.go | 3 ++- doc/content/schemas/yaml/Stack.md | 4 ++++ schemas/yaml/Stack.yaml | 3 +++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/code/go/dse/kind/Stack.go b/code/go/dse/kind/Stack.go index e403d69..080fca4 100644 --- a/code/go/dse/kind/Stack.go +++ b/code/go/dse/kind/Stack.go @@ -44,7 +44,8 @@ type Stack struct { } type StackKind string type StackRuntime struct { - Env *map[string]string `yaml:"env,omitempty"` + Env *map[string]string `yaml:"env,omitempty"` + Stacked *bool `yaml:"stacked,omitempty"` } type StackSpec struct { Connection *struct { diff --git a/doc/content/schemas/yaml/Stack.md b/doc/content/schemas/yaml/Stack.md index 06c8d23..d2edd89 100644 --- a/doc/content/schemas/yaml/Stack.md +++ b/doc/content/schemas/yaml/Stack.md @@ -33,6 +33,7 @@ spec: env: property1: string property2: string + stacked: true models: - name: string uid: 0 @@ -104,6 +105,7 @@ runtime: env: property1: string property2: string + stacked: true models: - name: string uid: 0 @@ -248,6 +250,7 @@ A model instance object. env: property1: string property2: string +stacked: true ``` @@ -259,6 +262,7 @@ Runtime properties of a Stack. |---|---|---|---| |env|object|false|Environment variables.| |ยป **additionalProperties**|string|false|none| +|stacked|boolean|false|Run all Models (of this stack) in a single instance of ModelC.|

ModelInstanceRuntime

diff --git a/schemas/yaml/Stack.yaml b/schemas/yaml/Stack.yaml index 994b874..cfa5401 100644 --- a/schemas/yaml/Stack.yaml +++ b/schemas/yaml/Stack.yaml @@ -130,6 +130,9 @@ components: description: Environment variables. additionalProperties: type: string + stacked: + type: boolean + description: Run all Models (of this stack) in a single instance of ModelC. ModelInstanceRuntime: type: object description: Runtime properties of a Model Instance.