File tree Expand file tree Collapse file tree 20 files changed +82
-64
lines changed Expand file tree Collapse file tree 20 files changed +82
-64
lines changed Original file line number Diff line number Diff line change 1
- FROM quay.io/operator-framework/ansible-operator:v0.8.1
1
+ FROM quay.io/operator-framework/ansible-operator:v0.17.0
2
+
3
+ COPY requirements.yml ${HOME}/requirements.yml
4
+ COPY image_resources/centos8-appstream.repo /etc/yum.repos.d/centos8-appstream.repo
5
+ RUN ansible-galaxy collection install -r ${HOME}/requirements.yml \
6
+ && chmod -R ug+rwx ${HOME}/.ansible
7
+
8
+ USER root
9
+ RUN dnf install -y --nodocs redis --enablerepo=centos8-appstream && dnf clean all
10
+
11
+ # Temporally workaround to fix https://github.com/operator-framework/operator-sdk/issues/2648
12
+ RUN ln -s ${HOME}/.ansible /.ansible
2
13
3
14
COPY group_vars/ ${HOME}/group_vars/
4
15
COPY roles/ ${HOME}/roles/
5
16
COPY watches.yaml ${HOME}/watches.yaml
6
17
COPY playbook.yml ${HOME}/playbook.yml
7
-
8
- USER root
9
- RUN yum install -y redis
10
18
USER 1001
Original file line number Diff line number Diff line change
1
+ [centos8-appstream]
2
+ name=CentOS-8-Appstream
3
+ baseurl=http://mirror.centos.org/centos/8/AppStream/x86_64/os/
4
+ enabled=0
5
+ gpgcheck=0
Original file line number Diff line number Diff line change 36
36
name : " uuid"
37
37
38
38
- name : Setting the uuid for the benchmark
39
- k8s_status :
39
+ operator_sdk.util. k8s_status :
40
40
api_version : ripsaw.cloudbulldozer.io/v1alpha1
41
41
kind : Benchmark
42
42
name : " {{ meta.name }}"
63
63
name : backpack
64
64
when : metadata is defined and not metadata.targeted | default('true') | bool
65
65
66
- - k8s_status :
66
+ - operator_sdk.util. k8s_status :
67
67
api_version : ripsaw.cloudbulldozer.io/v1alpha1
68
68
kind : Benchmark
69
69
name : " {{ meta.name }}"
Original file line number Diff line number Diff line change
1
+ ---
2
+ collections :
3
+ - name : community.kubernetes
4
+ version : " <1.0.0"
5
+ - operator_sdk.util
Original file line number Diff line number Diff line change 7
7
namespace : " {{ operator_namespace }}"
8
8
register : benchmark_state
9
9
10
- - k8s_status :
10
+ - operator_sdk.util. k8s_status :
11
11
api_version : ripsaw.cloudbulldozer.io/v1alpha1
12
12
kind : Benchmark
13
13
name : " {{ meta.name }}"
58
58
set_fact :
59
59
backpack_cur_gen : " {{ my_daemonset | json_query('resources[].metadata.generation')|first }}"
60
60
61
- - k8s_status :
61
+ - operator_sdk.util. k8s_status :
62
62
api_version : ripsaw.cloudbulldozer.io/v1alpha1
63
63
kind : Benchmark
64
64
name : " {{ meta.name }}"
89
89
90
90
- block :
91
91
92
- - k8s_status :
92
+ - operator_sdk.util. k8s_status :
93
93
api_version : ripsaw.cloudbulldozer.io/v1alpha1
94
94
kind : Benchmark
95
95
name : " {{ meta.name }}"
Original file line number Diff line number Diff line change 8
8
namespace : ' {{ operator_namespace }}'
9
9
register : resource_state
10
10
11
- - k8s_status :
11
+ - operator_sdk.util. k8s_status :
12
12
api_version : ripsaw.cloudbulldozer.io/v1alpha1
13
13
kind : Benchmark
14
14
name : " {{ meta.name }}"
34
34
definition : " {{ lookup('template', 'workload.yml') | from_yaml }}"
35
35
when : workload_args.kind is not defined
36
36
37
- - k8s_status :
37
+ - operator_sdk.util. k8s_status :
38
38
api_version : ripsaw.cloudbulldozer.io/v1alpha1
39
39
kind : Benchmark
40
40
name : " {{ meta.name }}"
56
56
- app = byowl-{{ trunc_uuid }}
57
57
register : client_pods
58
58
59
- - k8s_status :
59
+ - operator_sdk.util. k8s_status :
60
60
api_version : ripsaw.cloudbulldozer.io/v1alpha1
61
61
kind : Benchmark
62
62
name : " {{ meta.name }}"
Original file line number Diff line number Diff line change 6
6
register : result
7
7
8
8
- name : Update status if unhealthy
9
- k8s_status :
9
+ operator_sdk.util. k8s_status :
10
10
api_version : ripsaw.cloudbulldozer.io/v1alpha1
11
11
kind : Benchmark
12
12
name : " {{ meta.name }}"
17
17
when : result.content == "False"
18
18
19
19
- name : Update status if healthy
20
- k8s_status :
20
+ operator_sdk.util. k8s_status :
21
21
api_version : ripsaw.cloudbulldozer.io/v1alpha1
22
22
kind : Benchmark
23
23
name : " {{ meta.name }}"
Original file line number Diff line number Diff line change 7
7
namespace : ' {{ operator_namespace }}'
8
8
register : resource_state
9
9
10
- - k8s_status :
10
+ - operator_sdk.util. k8s_status :
11
11
api_version : ripsaw.cloudbulldozer.io/v1alpha1
12
12
kind : Benchmark
13
13
name : " {{ meta.name }}"
59
59
with_sequence : start=1 count={{ workload_args.servers|default('1')|int }}
60
60
when : workload_args.storageclass is defined
61
61
62
- - k8s_status :
62
+ - operator_sdk.util. k8s_status :
63
63
api_version : ripsaw.cloudbulldozer.io/v1alpha1
64
64
kind : Benchmark
65
65
name : " {{ meta.name }}"
87
87
- app = fio-benchmark-{{ trunc_uuid }}
88
88
register : server_pods
89
89
90
- - k8s_status :
90
+ - operator_sdk.util. k8s_status :
91
91
api_version : ripsaw.cloudbulldozer.io/v1alpha1
92
92
kind : Benchmark
93
93
name : " {{ meta.name }}"
119
119
- name : Create IP list
120
120
set_fact :
121
121
fio_hosts : |
122
- {% for ip, node in pod_details.iteritems () %}
122
+ {% for ip, node in pod_details.items () %}
123
123
{{ ip }}
124
124
{% endfor %}
125
125
139
139
k8s :
140
140
definition : " {{ lookup('template', 'client.yaml') | from_yaml }}"
141
141
142
- - k8s_status :
142
+ - operator_sdk.util. k8s_status :
143
143
api_version : ripsaw.cloudbulldozer.io/v1alpha1
144
144
kind : Benchmark
145
145
name : " {{ meta.name }}"
160
160
- app = fiod-client-{{ trunc_uuid }}
161
161
register : client_pods
162
162
163
- - k8s_status :
163
+ - operator_sdk.util. k8s_status :
164
164
api_version : ripsaw.cloudbulldozer.io/v1alpha1
165
165
kind : Benchmark
166
166
name : " {{ meta.name }}"
Original file line number Diff line number Diff line change 8
8
namespace : ' {{ operator_namespace }}'
9
9
register : resource_state
10
10
11
- - k8s_status :
11
+ - operator_sdk.util. k8s_status :
12
12
api_version : ripsaw.cloudbulldozer.io/v1alpha1
13
13
kind : Benchmark
14
14
name : " {{ meta.name }}"
116
116
with_sequence : start=1 count={{workload_args.worker_pods|default('1')|int}}
117
117
when : workload_args.worker_pods|default('1')|int > 0
118
118
119
- - k8s_status :
119
+ - operator_sdk.util. k8s_status :
120
120
api_version : ripsaw.cloudbulldozer.io/v1alpha1
121
121
kind : Benchmark
122
122
name : " {{ meta.name }}"
138
138
- app = fs-drift-benchmark-{{ trunc_uuid }}
139
139
register : client_pods
140
140
141
- - k8s_status :
141
+ - operator_sdk.util. k8s_status :
142
142
api_version : ripsaw.cloudbulldozer.io/v1alpha1
143
143
kind : Benchmark
144
144
name : " {{ meta.name }}"
Original file line number Diff line number Diff line change 7
7
namespace : ' {{ operator_namespace }}'
8
8
register : resource_state
9
9
10
- - k8s_status :
10
+ - operator_sdk.util. k8s_status :
11
11
api_version : ripsaw.cloudbulldozer.io/v1alpha1
12
12
kind : Benchmark
13
13
name : " {{ meta.name }}"
33
33
with_sequence : start=1 count={{ workload_args.pairs|default('1')|int }}
34
34
35
35
- name : Update state to Starting Server
36
- k8s_status :
36
+ operator_sdk.util. k8s_status :
37
37
api_version : ripsaw.cloudbulldozer.io/v1alpha1
38
38
kind : Benchmark
39
39
name : " {{ meta.name }}"
55
55
register : server_pods
56
56
57
57
- name : Update state to Starting Clients
58
- k8s_status :
58
+ operator_sdk.util. k8s_status :
59
59
api_version : ripsaw.cloudbulldozer.io/v1alpha1
60
60
kind : Benchmark
61
61
name : " {{ meta.name }}"
83
83
with_items : " {{ server_pods.resources }}"
84
84
85
85
- name : Update state to Waiting for Clients
86
- k8s_status :
86
+ operator_sdk.util. k8s_status :
87
87
api_version : ripsaw.cloudbulldozer.io/v1alpha1
88
88
kind : Benchmark
89
89
name : " {{ meta.name }}"
104
104
- app = iperf3-bench-client-{{ trunc_uuid }}
105
105
register : client_pods
106
106
107
- - k8s_status :
107
+ - operator_sdk.util. k8s_status :
108
108
api_version : ripsaw.cloudbulldozer.io/v1alpha1
109
109
kind : Benchmark
110
110
name : " {{ meta.name }}"
126
126
- app = iperf3-bench-client-{{ trunc_uuid }}
127
127
register : client_jobs
128
128
129
- - k8s_status :
129
+ - operator_sdk.util. k8s_status :
130
130
api_version : ripsaw.cloudbulldozer.io/v1alpha1
131
131
kind : Benchmark
132
132
name : " {{ meta.name }}"
You can’t perform that action at this time.
0 commit comments