@@ -75,24 +75,24 @@ var testVPABasic = &vpav1.VerticalPodAutoscaler{
7575}
7676
7777var testDeploymentBasicUnstructured = & unstructured.Unstructured {
78- Object : map [string ]interface {} {
78+ Object : map [string ]any {
7979 "kind" : "Deployment" ,
8080 "apiVersion" : "apps/v1" ,
81- "metadata" : map [string ]interface {} {
81+ "metadata" : map [string ]any {
8282 "name" : "test-basic" ,
8383 "namespace" : "testing" ,
8484 },
85- "spec" : map [string ]interface {} {},
85+ "spec" : map [string ]any {},
8686 },
8787}
8888
8989var testDeploymentBasicReplicaSetUnstructured = & unstructured.Unstructured {
90- Object : map [string ]interface {} {
90+ Object : map [string ]any {
9191 "kind" : "ReplicaSet" ,
9292 "apiVersion" : "apps/v1" ,
93- "metadata" : map [string ]interface {} {
94- "ownerReferences" : []interface {} {
95- map [string ]interface {} {
93+ "metadata" : map [string ]any {
94+ "ownerReferences" : []any {
95+ map [string ]any {
9696 "apiVersion" : "apps/v1" ,
9797 "kind" : "Deployment" ,
9898 "controller" : true ,
@@ -102,17 +102,17 @@ var testDeploymentBasicReplicaSetUnstructured = &unstructured.Unstructured{
102102 "name" : "test-basic-0123456789" ,
103103 "namespace" : "testing" ,
104104 },
105- "spec" : map [string ]interface {} {},
105+ "spec" : map [string ]any {},
106106 },
107107}
108108
109109var testDeploymentBasicPodUnstructured = & unstructured.Unstructured {
110- Object : map [string ]interface {} {
110+ Object : map [string ]any {
111111 "kind" : "Pod" ,
112112 "apiVersion" : "v1" ,
113- "metadata" : map [string ]interface {} {
114- "ownerReferences" : []interface {} {
115- map [string ]interface {} {
113+ "metadata" : map [string ]any {
114+ "ownerReferences" : []any {
115+ map [string ]any {
116116 "apiVersion" : "apps/v1" ,
117117 "kind" : "ReplicaSet" ,
118118 "controller" : true ,
@@ -122,7 +122,7 @@ var testDeploymentBasicPodUnstructured = &unstructured.Unstructured{
122122 "name" : "test-basic-0123456789-01234" ,
123123 "namespace" : "testing" ,
124124 },
125- "spec" : map [string ]interface {} {},
125+ "spec" : map [string ]any {},
126126 },
127127}
128128
@@ -178,25 +178,25 @@ var testVPAWithReco = &vpav1.VerticalPodAutoscaler{
178178}
179179
180180var testDeploymentWithRecoUnstructured = & unstructured.Unstructured {
181- Object : map [string ]interface {} {
181+ Object : map [string ]any {
182182 "kind" : "Deployment" ,
183183 "apiVersion" : "apps/v1" ,
184- "metadata" : map [string ]interface {} {
184+ "metadata" : map [string ]any {
185185 "name" : "test-vpa-with-reco" ,
186186 "namespace" : "testing" ,
187187 },
188- "spec" : map [string ]interface {} {
189- "template" : map [string ]interface {} {
190- "spec" : map [string ]interface {} {
191- "containers" : []interface {} {
192- map [string ]interface {} {
188+ "spec" : map [string ]any {
189+ "template" : map [string ]any {
190+ "spec" : map [string ]any {
191+ "containers" : []any {
192+ map [string ]any {
193193 "name" : "container" ,
194- "resources" : map [string ]interface {} {
195- "limits" : map [string ]interface {} {
194+ "resources" : map [string ]any {
195+ "limits" : map [string ]any {
196196 "cpu" : "100m" ,
197197 "memory" : "100Mi" ,
198198 },
199- "requests" : map [string ]interface {} {
199+ "requests" : map [string ]any {
200200 "cpu" : "100m" ,
201201 "memory" : "100Mi" ,
202202 },
@@ -210,12 +210,12 @@ var testDeploymentWithRecoUnstructured = &unstructured.Unstructured{
210210}
211211
212212var testDeploymentWithRecoReplicaSetUnstructured = & unstructured.Unstructured {
213- Object : map [string ]interface {} {
213+ Object : map [string ]any {
214214 "kind" : "ReplicaSet" ,
215215 "apiVersion" : "apps/v1" ,
216- "metadata" : map [string ]interface {} {
217- "ownerReferences" : []interface {} {
218- map [string ]interface {} {
216+ "metadata" : map [string ]any {
217+ "ownerReferences" : []any {
218+ map [string ]any {
219219 "apiVersion" : "apps/v1" ,
220220 "kind" : "Deployment" ,
221221 "controller" : true ,
@@ -225,17 +225,17 @@ var testDeploymentWithRecoReplicaSetUnstructured = &unstructured.Unstructured{
225225 "name" : "test-vpa-with-reco-0123456789" ,
226226 "namespace" : "testing" ,
227227 },
228- "spec" : map [string ]interface {} {},
228+ "spec" : map [string ]any {},
229229 },
230230}
231231
232232var testDeploymentWithRecoPodUnstructured = & unstructured.Unstructured {
233- Object : map [string ]interface {} {
233+ Object : map [string ]any {
234234 "kind" : "Pod" ,
235235 "apiVersion" : "v1" ,
236- "metadata" : map [string ]interface {} {
237- "ownerReferences" : []interface {} {
238- map [string ]interface {} {
236+ "metadata" : map [string ]any {
237+ "ownerReferences" : []any {
238+ map [string ]any {
239239 "apiVersion" : "apps/v1" ,
240240 "kind" : "ReplicaSet" ,
241241 "controller" : true ,
@@ -245,7 +245,7 @@ var testDeploymentWithRecoPodUnstructured = &unstructured.Unstructured{
245245 "name" : "test-vpa-with-reco-0123456789-01234" ,
246246 "namespace" : "testing" ,
247247 },
248- "spec" : map [string ]interface {} {},
248+ "spec" : map [string ]any {},
249249 },
250250}
251251
@@ -254,7 +254,7 @@ var testDeploymentWithRecoPodUnstructured = &unstructured.Unstructured{
254254var testSummary = Summary {
255255 Namespaces : map [string ]namespaceSummary {
256256 "testing" : {
257- Namespace : "testing" ,
257+ Namespace : "testing" ,
258258 IsOnlyNamespace : true ,
259259 Workloads : map [string ]workloadSummary {
260260 "test-basic" : {
@@ -284,25 +284,25 @@ var testSummary = Summary{
284284// DaemonSet test and VPA
285285
286286var testDaemonSettWithRecoUnstructured = & unstructured.Unstructured {
287- Object : map [string ]interface {} {
287+ Object : map [string ]any {
288288 "kind" : "DaemonSet" ,
289289 "apiVersion" : "apps/v1" ,
290- "metadata" : map [string ]interface {} {
290+ "metadata" : map [string ]any {
291291 "name" : "test-ds-with-reco" ,
292292 "namespace" : "testing-daemonset" ,
293293 },
294- "spec" : map [string ]interface {} {
295- "template" : map [string ]interface {} {
296- "spec" : map [string ]interface {} {
297- "containers" : []interface {} {
298- map [string ]interface {} {
294+ "spec" : map [string ]any {
295+ "template" : map [string ]any {
296+ "spec" : map [string ]any {
297+ "containers" : []any {
298+ map [string ]any {
299299 "name" : "container" ,
300- "resources" : map [string ]interface {} {
301- "limits" : map [string ]interface {} {
300+ "resources" : map [string ]any {
301+ "limits" : map [string ]any {
302302 "cpu" : "100m" ,
303303 "memory" : "100Mi" ,
304304 },
305- "requests" : map [string ]interface {} {
305+ "requests" : map [string ]any {
306306 "cpu" : "100m" ,
307307 "memory" : "100Mi" ,
308308 },
@@ -316,12 +316,12 @@ var testDaemonSettWithRecoUnstructured = &unstructured.Unstructured{
316316}
317317
318318var testDaemonSetWithRecoPodUnstructured = & unstructured.Unstructured {
319- Object : map [string ]interface {} {
319+ Object : map [string ]any {
320320 "kind" : "Pod" ,
321321 "apiVersion" : "v1" ,
322- "metadata" : map [string ]interface {} {
323- "ownerReferences" : []interface {} {
324- map [string ]interface {} {
322+ "metadata" : map [string ]any {
323+ "ownerReferences" : []any {
324+ map [string ]any {
325325 "apiVersion" : "apps/v1" ,
326326 "kind" : "DaemonSet" ,
327327 "controller" : true ,
@@ -331,7 +331,7 @@ var testDaemonSetWithRecoPodUnstructured = &unstructured.Unstructured{
331331 "name" : "test-ds-with-reco-01234" ,
332332 "namespace" : "testing-daemonset" ,
333333 },
334- "spec" : map [string ]interface {} {},
334+ "spec" : map [string ]any {},
335335 },
336336}
337337
@@ -370,7 +370,7 @@ var testDaemonSetVPAWithReco = &vpav1.VerticalPodAutoscaler{
370370var testSummaryDaemonSet = Summary {
371371 Namespaces : map [string ]namespaceSummary {
372372 "testing-daemonset" : {
373- Namespace : "testing-daemonset" ,
373+ Namespace : "testing-daemonset" ,
374374 IsOnlyNamespace : true ,
375375 Workloads : map [string ]workloadSummary {
376376 "test-ds-with-reco" : {
0 commit comments