3434 template : templates/kubelet/daemonset.yaml
3535 - equal :
3636 path : spec.template.spec.hostNetwork
37- value : false
37+ value : true # Windows uses hostNetwork when privileged: true (default)
3838 template : templates/kubelet/daemonset-windows.yaml
3939
4040
4343 enableWindows : true
4444 licenseKey : test
4545 cluster : test
46+ privileged : false # Test unprivileged mode
4647 global.hostNetwork : null
4748 hostNetwork : null
4849 controlPlane.hostNetwork : null
@@ -59,16 +60,16 @@ tests:
5960 path : spec.template.spec.hostNetwork
6061 value : false
6162 template : templates/kubelet/daemonset.yaml
62- - equal :
63+ - isNull :
6364 path : spec.template.spec.hostNetwork
64- value : false
6565 template : templates/kubelet/daemonset-windows.yaml
6666
6767 - it : hostNetwork is set by the common library
6868 set :
6969 enableWindows : true
7070 licenseKey : test
7171 cluster : test
72+ privileged : false # Test unprivileged mode
7273 global.hostNetwork : null
7374 hostNetwork : true
7475 controlPlane.hostNetwork : null
@@ -85,16 +86,16 @@ tests:
8586 path : spec.template.spec.hostNetwork
8687 value : true
8788 template : templates/kubelet/daemonset.yaml
88- - equal :
89+ - isNull :
8990 path : spec.template.spec.hostNetwork
90- value : false # Windows should still be false
91- template : templates/kubelet/daemonset-windows.yaml
91+ template : templates/kubelet/daemonset-windows.yaml # Windows in unprivileged mode doesn't render hostNetwork
9292
9393 - it : controlPlane hostNetwork is overridable to true
9494 set :
9595 enableWindows : true
9696 licenseKey : test
9797 cluster : test
98+ privileged : false # Test unprivileged mode
9899 global.hostNetwork : null
99100 hostNetwork : false
100101 controlPlane.hostNetwork : true
@@ -111,16 +112,16 @@ tests:
111112 path : spec.template.spec.hostNetwork
112113 value : false
113114 template : templates/kubelet/daemonset.yaml
114- - equal :
115+ - isNull :
115116 path : spec.template.spec.hostNetwork
116- value : false
117117 template : templates/kubelet/daemonset-windows.yaml
118118
119119 - it : controlPlane hostNetwork is overridable to false
120120 set :
121121 enableWindows : true
122122 licenseKey : test
123123 cluster : test
124+ privileged : false # Test unprivileged mode
124125 global.hostNetwork : null
125126 hostNetwork : true
126127 controlPlane.hostNetwork : false
@@ -137,16 +138,16 @@ tests:
137138 path : spec.template.spec.hostNetwork
138139 value : true
139140 template : templates/kubelet/daemonset.yaml
140- - equal :
141+ - isNull :
141142 path : spec.template.spec.hostNetwork
142- value : false
143143 template : templates/kubelet/daemonset-windows.yaml
144144
145145 - it : ksm hostNetwork is overridable to true
146146 set :
147147 enableWindows : true
148148 licenseKey : test
149149 cluster : test
150+ privileged : false # Test unprivileged mode
150151 global.hostNetwork : null
151152 hostNetwork : false
152153 ksm.hostNetwork : true
@@ -163,16 +164,16 @@ tests:
163164 path : spec.template.spec.hostNetwork
164165 value : false
165166 template : templates/kubelet/daemonset.yaml
166- - equal :
167+ - isNull :
167168 path : spec.template.spec.hostNetwork
168- value : false
169169 template : templates/kubelet/daemonset-windows.yaml
170170
171171 - it : ksm hostNetwork is overridable to false
172172 set :
173173 enableWindows : true
174174 licenseKey : test
175175 cluster : test
176+ privileged : false # Test unprivileged mode
176177 global.hostNetwork : null
177178 hostNetwork : true
178179 ksm.hostNetwork : false
@@ -189,16 +190,16 @@ tests:
189190 path : spec.template.spec.hostNetwork
190191 value : true
191192 template : templates/kubelet/daemonset.yaml
192- - equal :
193+ - isNull :
193194 path : spec.template.spec.hostNetwork
194- value : false
195195 template : templates/kubelet/daemonset-windows.yaml
196196
197197 - it : kubelet hostNetwork is overridable to true
198198 set :
199199 enableWindows : true
200200 licenseKey : test
201201 cluster : test
202+ privileged : false # Test unprivileged mode
202203 global.hostNetwork : null
203204 hostNetwork : false
204205 kubelet.hostNetwork : true
@@ -215,16 +216,16 @@ tests:
215216 path : spec.template.spec.hostNetwork
216217 value : true
217218 template : templates/kubelet/daemonset.yaml
218- - equal :
219+ - isNull :
219220 path : spec.template.spec.hostNetwork
220- value : false
221221 template : templates/kubelet/daemonset-windows.yaml
222222
223223 - it : kubelet hostNetwork is overridable to false
224224 set :
225225 enableWindows : true
226226 licenseKey : test
227227 cluster : test
228+ privileged : false # Test unprivileged mode
228229 global.hostNetwork : null
229230 hostNetwork : true
230231 kubelet.hostNetwork : false
@@ -241,7 +242,6 @@ tests:
241242 path : spec.template.spec.hostNetwork
242243 value : false
243244 template : templates/kubelet/daemonset.yaml
244- - equal :
245+ - isNull :
245246 path : spec.template.spec.hostNetwork
246- value : false
247247 template : templates/kubelet/daemonset-windows.yaml
0 commit comments