Skip to content

Commit

Permalink
extracted the namespace as scenario input (#419)
Browse files Browse the repository at this point in the history
fixed sub-workflow and input

Co-authored-by: Naga Ravi Chaitanya Elluri <[email protected]>
  • Loading branch information
tsebastiani and chaitanyaenr authored May 15, 2023
1 parent d9f4607 commit b9c08a4
Show file tree
Hide file tree
Showing 12 changed files with 52 additions and 4 deletions.
1 change: 1 addition & 0 deletions docs/arcaflow_scenarios/cpu_hog.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Usage section.
This scenario takes a list of objects named `input_list` with the following properties:

- **kubeconfig :** *string* the kubeconfig needed by the deployer to deploy the sysbench plugin in the target cluster
- **namespace :** *string* the namespace where the scenario container will be deployed
**Note:** this parameter will be automatically filled by kraken if the `kubeconfig_path` property is correctly set
- **node_selector :** *key-value map* the node label that will be used as `nodeSelector` by the pod to target a specific cluster node
- **duration :** *string* stop stress test after N seconds. One can also specify the units of time in seconds, minutes, hours, days or years with the suffix s, m, h, d or y.
Expand Down
1 change: 1 addition & 0 deletions docs/arcaflow_scenarios/io_hog.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Usage section.
This scenario takes a list of objects named `input_list` with the following properties:

- **kubeconfig :** *string* the kubeconfig needed by the deployer to deploy the sysbench plugin in the target cluster
- **namespace :** *string* the namespace where the scenario container will be deployed
**Note:** this parameter will be automatically filled by kraken if the `kubeconfig_path` property is correctly set
- **node_selector :** *key-value map* the node label that will be used as `nodeSelector` by the pod to target a specific cluster node
- **duration :** *string* stop stress test after N seconds. One can also specify the units of time in seconds, minutes, hours, days or years with the suffix s, m, h, d or y.
Expand Down
1 change: 1 addition & 0 deletions docs/arcaflow_scenarios/memory_hog.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Usage section.
This scenario takes a list of objects named `input_list` with the following properties:

- **kubeconfig :** *string* the kubeconfig needed by the deployer to deploy the sysbench plugin in the target cluster
- **namespace :** *string* the namespace where the scenario container will be deployed
**Note:** this parameter will be automatically filled by kraken if the `kubeconfig_path` property is correctly set
- **node_selector :** *key-value map* the node label that will be used as `nodeSelector` by the pod to target a specific cluster node
- **duration :** *string* stop stress test after N seconds. One can also specify the units of time in seconds, minutes, hours, days or years with the suffix s, m, h, d or y.
Expand Down
1 change: 1 addition & 0 deletions scenarios/arcaflow/cpu-hog/input.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ input_list:
# node_selector:
# kubernetes.io/hostname: master
kubeconfig: ""
namespace: default

# duplicate this section to run simultaneous stressors in the same run

9 changes: 8 additions & 1 deletion scenarios/arcaflow/cpu-hog/sub-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ input:
type:
type_id: string
required: true
namespace:
display:
description: The namespace where the container will be deployed
name: Namespace
type:
type_id: string
required: true
node_selector:
display:
description: kubernetes node name where the plugin must be deployed
Expand Down Expand Up @@ -73,7 +80,7 @@ steps:
connection: !expr $.steps.kubeconfig.outputs.success.connection
pod:
metadata:
namespace: default
namespace: !expr $.input.namespace
labels:
arcaflow: stressng
spec:
Expand Down
7 changes: 7 additions & 0 deletions scenarios/arcaflow/cpu-hog/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ input:
type:
type_id: string
required: true
namespace:
display:
description: The namespace where the container will be deployed
name: Namespace
type:
type_id: string
required: true
node_selector:
display:
description: kubernetes node name where the plugin must be deployed
Expand Down
1 change: 1 addition & 0 deletions scenarios/arcaflow/io-hog/input.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ input_list:
# node_selector:
# kubernetes.io/hostname: master
kubeconfig: ""
namespace: default

# duplicate this section to run simultaneous stressors in the same run

9 changes: 8 additions & 1 deletion scenarios/arcaflow/io-hog/sub-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ input:
type:
type_id: string
required: true
namespace:
display:
description: The namespace where the container will be deployed
name: Namespace
type:
type_id: string
required: true
node_selector:
display:
description: kubernetes node name where the plugin must be deployed
Expand Down Expand Up @@ -110,7 +117,7 @@ steps:
connection: !expr $.steps.kubeconfig.outputs.success.connection
pod:
metadata:
namespace: default
namespace: !expr $.input.namespace
labels:
arcaflow: stressng
spec:
Expand Down
7 changes: 7 additions & 0 deletions scenarios/arcaflow/io-hog/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ input:
type:
type_id: string
required: true
namespace:
display:
description: The namespace where the container will be deployed
name: Namespace
type:
type_id: string
required: true
node_selector:
display:
description: kubernetes node name where the plugin must be deployed
Expand Down
3 changes: 2 additions & 1 deletion scenarios/arcaflow/memory-hog/input.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ input_list:
# node selector example
# node_selector:
# kubernetes.io/hostname: master
kubeconfig: { }
kubeconfig: ""
namespace: default

# duplicate this section to run simultaneous stressors in the same run

9 changes: 8 additions & 1 deletion scenarios/arcaflow/memory-hog/sub-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ input:
type:
type_id: string
required: true
namespace:
display:
description: The namespace where the container will be deployed
name: Namespace
type:
type_id: string
required: true
node_selector:
display:
description: kubernetes node name where the plugin must be deployed
Expand Down Expand Up @@ -64,7 +71,7 @@ steps:
connection: !expr $.steps.kubeconfig.outputs.success.connection
pod:
metadata:
namespace: default
namespace: !expr $.input.namespace
labels:
arcaflow: stressng
spec:
Expand Down
7 changes: 7 additions & 0 deletions scenarios/arcaflow/memory-hog/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ input:
type:
type_id: string
required: true
namespace:
display:
description: The namespace where the container will be deployed
name: Namespace
type:
type_id: string
required: true
node_selector:
display:
description: kubernetes node name where the plugin must be deployed
Expand Down

0 comments on commit b9c08a4

Please sign in to comment.