Skip to content

Commit 09c9034

Browse files
committed
qa: allow overrides for nvmeof task
Signed-off-by: Vallari Agrawal <[email protected]>
1 parent 3ea1407 commit 09c9034

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

qa/tasks/nvmeof.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
class Nvmeof(Task):
2323
"""
2424
Setup nvmeof gateway on client and then share gateway config to target host.
25-
25+
tasks:
2626
- nvmeof:
2727
installer: host.a // or 'nvmeof.nvmeof.a'
2828
version: default
@@ -33,6 +33,16 @@ class Nvmeof(Task):
3333
namespaces_count: 10
3434
cli_version: latest
3535
create_mtls_secrets: False
36+
37+
You can pass extra conf file to override above setup values:
38+
39+
overrides:
40+
nvmeof:
41+
gw_image: quay.io/ceph/nvmeof:devel
42+
gateway_config:
43+
subsystems_count: 3
44+
namespaces_count: 20
45+
cli_image: quay.io/ceph/nvmeof-cli:devel
3646
3747
"""
3848

@@ -44,6 +54,8 @@ def setup(self):
4454
raise ConfigError('nvmeof requires a installer host to deploy service')
4555
self.cluster_name, _, _ = misc.split_role(host)
4656
self.remote = get_remote_for_role(self.ctx, host)
57+
overrides = self.ctx.config.get('overrides', {})
58+
misc.deep_merge(self.config, overrides.get('nvmeof', {}))
4759

4860
def begin(self):
4961
super(Nvmeof, self).begin()

0 commit comments

Comments
 (0)