Skip to content

Commit

Permalink
Add stacked bool to StackRuntime object.
Browse files Browse the repository at this point in the history
Signed-off-by: Rule Timothy (VM/EMT3) <Timothy.Rule@de.bosch.com>
  • Loading branch information
timrulebosch committed Mar 11, 2024
1 parent 1232b22 commit ad4fe31
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/go/dse/kind/Stack.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 4 additions & 0 deletions doc/content/schemas/yaml/Stack.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ spec:
env:
property1: string
property2: string
stacked: true
models:
- name: string
uid: 0
Expand Down Expand Up @@ -104,6 +105,7 @@ runtime:
env:
property1: string
property2: string
stacked: true
models:
- name: string
uid: 0
Expand Down Expand Up @@ -248,6 +250,7 @@ A model instance object.
env:
property1: string
property2: string
stacked: true

```
Expand All @@ -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.|
<h2 id="tocS_ModelInstanceRuntime">ModelInstanceRuntime</h2>
Expand Down
3 changes: 3 additions & 0 deletions schemas/yaml/Stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit ad4fe31

Please sign in to comment.