Skip to content

Commit f285fc1

Browse files
committed
chore: changelog
1 parent 5f7648f commit f285fc1

3 files changed

Lines changed: 29 additions & 18 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## Unreleased
99

10+
### enhancement
11+
- Introduce HostProcess Windows containers and "privileged" mode support to collect host metrics on Windows nodes. @kondracek-nr [#1361](https://github.com/newrelic/nri-kubernetes/pull/1361)
12+
1013
## v3.51.1 - 2025-12-15
1114

1215
### ⛓️ Dependencies

charts/newrelic-infrastructure/tests/hostNetwork_test.yaml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ tests:
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

@@ -43,6 +43,7 @@ tests:
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

charts/newrelic-infrastructure/tests/securityContext_test.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,32 +202,37 @@ tests:
202202
licenseKey: test
203203
cluster: test
204204
enableWindows: true
205+
privileged: false # Test unprivileged mode
205206
asserts:
206207
- equal:
207208
path: spec.template.spec.containers[0].securityContext
208209
value:
209210
windowsOptions:
211+
hostProcess: false
210212
runAsUserName: 'ContainerUser'
211213
documentIndex: 0
212214
template: templates/kubelet/daemonset-windows.yaml
213215
- equal:
214216
path: spec.template.spec.containers[1].securityContext
215217
value:
216218
windowsOptions:
219+
hostProcess: false
217220
runAsUserName: 'ContainerUser'
218221
documentIndex: 0
219222
template: templates/kubelet/daemonset-windows.yaml
220223
- equal:
221224
path: spec.template.spec.containers[0].securityContext
222225
value:
223226
windowsOptions:
227+
hostProcess: false
224228
runAsUserName: 'ContainerUser'
225229
documentIndex: 1
226230
template: templates/kubelet/daemonset-windows.yaml
227231
- equal:
228232
path: spec.template.spec.containers[1].securityContext
229233
value:
230234
windowsOptions:
235+
hostProcess: false
231236
runAsUserName: 'ContainerUser'
232237
documentIndex: 1
233238
template: templates/kubelet/daemonset-windows.yaml
@@ -237,6 +242,7 @@ tests:
237242
licenseKey: test
238243
cluster: test
239244
enableWindows: true
245+
privileged: false # Test unprivileged mode
240246
global.containerSecurityContext:
241247
runAsUser: 1000
242248
runAsGroup: 2000
@@ -245,13 +251,15 @@ tests:
245251
path: spec.template.spec.containers[0].securityContext
246252
value:
247253
windowsOptions:
254+
hostProcess: false
248255
runAsUserName: 'ContainerUser'
249256
documentIndex: 0
250257
template: templates/kubelet/daemonset-windows.yaml
251258
- equal:
252259
path: spec.template.spec.containers[1].securityContext
253260
value:
254261
windowsOptions:
262+
hostProcess: false
255263
runAsUserName: 'ContainerUser'
256264
documentIndex: 0
257265
template: templates/kubelet/daemonset-windows.yaml

0 commit comments

Comments
 (0)