Skip to content

Commit 25f7c51

Browse files
committed
(cluster/antu) convert node role from rke -> rke2server
1 parent 3708ee6 commit 25f7c51

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
---
22
classes:
3+
- "profile::core::sysctl::lhn"
34
- "profile::core::sysctl::rp_filter"
45
profile::core::sysctl::rp_filter::enable: false
6+
rke2::config:
7+
node-label:
8+
- "role=storage-node"

spec/hosts/nodes/antu01.ls.lsst.org_spec.rb

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
end
2020
let(:node_params) do
2121
{
22-
role: 'rke',
22+
role: 'rke2server',
2323
site: 'ls',
2424
cluster: 'antu',
2525
}
@@ -30,7 +30,12 @@
3030
include_examples 'baremetal'
3131
include_context 'with nm interface'
3232
include_examples 'ceph cluster'
33-
include_examples 'docker', docker_version: '25.0.3'
33+
34+
it do
35+
expect(catalogue.resource('class', 'rke2')[:config]).to include(
36+
'node-label' => ['role=storage-node']
37+
)
38+
end
3439

3540
it do
3641
is_expected.to contain_class('profile::core::sysctl::rp_filter').with_enable(false)
@@ -48,8 +53,10 @@
4853
end
4954

5055
it do
51-
is_expected.to contain_class('rke').with(
52-
version: '1.8.0'
56+
is_expected.to contain_class('rke2').with(
57+
node_type: 'server',
58+
release_series: '1.32',
59+
version: '1.32.2~rke2r1'
5360
)
5461
end
5562

0 commit comments

Comments
 (0)