Skip to content

Commit b9c08a4

Browse files
extracted the namespace as scenario input (#419)
fixed sub-workflow and input Co-authored-by: Naga Ravi Chaitanya Elluri <[email protected]>
1 parent d9f4607 commit b9c08a4

File tree

12 files changed

+52
-4
lines changed

12 files changed

+52
-4
lines changed

docs/arcaflow_scenarios/cpu_hog.md

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Usage section.
66
This scenario takes a list of objects named `input_list` with the following properties:
77

88
- **kubeconfig :** *string* the kubeconfig needed by the deployer to deploy the sysbench plugin in the target cluster
9+
- **namespace :** *string* the namespace where the scenario container will be deployed
910
**Note:** this parameter will be automatically filled by kraken if the `kubeconfig_path` property is correctly set
1011
- **node_selector :** *key-value map* the node label that will be used as `nodeSelector` by the pod to target a specific cluster node
1112
- **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.

docs/arcaflow_scenarios/io_hog.md

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Usage section.
77
This scenario takes a list of objects named `input_list` with the following properties:
88

99
- **kubeconfig :** *string* the kubeconfig needed by the deployer to deploy the sysbench plugin in the target cluster
10+
- **namespace :** *string* the namespace where the scenario container will be deployed
1011
**Note:** this parameter will be automatically filled by kraken if the `kubeconfig_path` property is correctly set
1112
- **node_selector :** *key-value map* the node label that will be used as `nodeSelector` by the pod to target a specific cluster node
1213
- **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.

docs/arcaflow_scenarios/memory_hog.md

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Usage section.
66
This scenario takes a list of objects named `input_list` with the following properties:
77

88
- **kubeconfig :** *string* the kubeconfig needed by the deployer to deploy the sysbench plugin in the target cluster
9+
- **namespace :** *string* the namespace where the scenario container will be deployed
910
**Note:** this parameter will be automatically filled by kraken if the `kubeconfig_path` property is correctly set
1011
- **node_selector :** *key-value map* the node label that will be used as `nodeSelector` by the pod to target a specific cluster node
1112
- **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.

scenarios/arcaflow/cpu-hog/input.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ input_list:
88
# node_selector:
99
# kubernetes.io/hostname: master
1010
kubeconfig: ""
11+
namespace: default
1112

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

scenarios/arcaflow/cpu-hog/sub-workflow.yaml

+8-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ input:
1111
type:
1212
type_id: string
1313
required: true
14+
namespace:
15+
display:
16+
description: The namespace where the container will be deployed
17+
name: Namespace
18+
type:
19+
type_id: string
20+
required: true
1421
node_selector:
1522
display:
1623
description: kubernetes node name where the plugin must be deployed
@@ -73,7 +80,7 @@ steps:
7380
connection: !expr $.steps.kubeconfig.outputs.success.connection
7481
pod:
7582
metadata:
76-
namespace: default
83+
namespace: !expr $.input.namespace
7784
labels:
7885
arcaflow: stressng
7986
spec:

scenarios/arcaflow/cpu-hog/workflow.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ input:
1818
type:
1919
type_id: string
2020
required: true
21+
namespace:
22+
display:
23+
description: The namespace where the container will be deployed
24+
name: Namespace
25+
type:
26+
type_id: string
27+
required: true
2128
node_selector:
2229
display:
2330
description: kubernetes node name where the plugin must be deployed

scenarios/arcaflow/io-hog/input.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ input_list:
1313
# node_selector:
1414
# kubernetes.io/hostname: master
1515
kubeconfig: ""
16+
namespace: default
1617

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

scenarios/arcaflow/io-hog/sub-workflow.yaml

+8-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ input:
1111
type:
1212
type_id: string
1313
required: true
14+
namespace:
15+
display:
16+
description: The namespace where the container will be deployed
17+
name: Namespace
18+
type:
19+
type_id: string
20+
required: true
1421
node_selector:
1522
display:
1623
description: kubernetes node name where the plugin must be deployed
@@ -110,7 +117,7 @@ steps:
110117
connection: !expr $.steps.kubeconfig.outputs.success.connection
111118
pod:
112119
metadata:
113-
namespace: default
120+
namespace: !expr $.input.namespace
114121
labels:
115122
arcaflow: stressng
116123
spec:

scenarios/arcaflow/io-hog/workflow.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ input:
1818
type:
1919
type_id: string
2020
required: true
21+
namespace:
22+
display:
23+
description: The namespace where the container will be deployed
24+
name: Namespace
25+
type:
26+
type_id: string
27+
required: true
2128
node_selector:
2229
display:
2330
description: kubernetes node name where the plugin must be deployed

scenarios/arcaflow/memory-hog/input.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ input_list:
66
# node selector example
77
# node_selector:
88
# kubernetes.io/hostname: master
9-
kubeconfig: { }
9+
kubeconfig: ""
10+
namespace: default
1011

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

scenarios/arcaflow/memory-hog/sub-workflow.yaml

+8-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ input:
1111
type:
1212
type_id: string
1313
required: true
14+
namespace:
15+
display:
16+
description: The namespace where the container will be deployed
17+
name: Namespace
18+
type:
19+
type_id: string
20+
required: true
1421
node_selector:
1522
display:
1623
description: kubernetes node name where the plugin must be deployed
@@ -64,7 +71,7 @@ steps:
6471
connection: !expr $.steps.kubeconfig.outputs.success.connection
6572
pod:
6673
metadata:
67-
namespace: default
74+
namespace: !expr $.input.namespace
6875
labels:
6976
arcaflow: stressng
7077
spec:

scenarios/arcaflow/memory-hog/workflow.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ input:
1818
type:
1919
type_id: string
2020
required: true
21+
namespace:
22+
display:
23+
description: The namespace where the container will be deployed
24+
name: Namespace
25+
type:
26+
type_id: string
27+
required: true
2128
node_selector:
2229
display:
2330
description: kubernetes node name where the plugin must be deployed

0 commit comments

Comments
 (0)