@@ -205,7 +205,7 @@ var _ = Describe("HyperFleetConfig CRD validation", func() {
205205 // https XValidation alone) must reject it. Only unstructured can carry an
206206 // explicit empty scalar; the typed client omits it via omitempty.
207207 u := minimalUnstructured ()
208- auth := u .Object ["spec" ].(map [string ]interface {} )["api" ].(map [string ]interface {} )["auth" ].(map [string ]interface {} )
208+ auth := u .Object ["spec" ].(map [string ]any )["api" ].(map [string ]any )["auth" ].(map [string ]any )
209209 auth ["issuer" ] = ""
210210 err := k8sClient .Create (ctx , u )
211211 Expect (err ).To (HaveOccurred ())
@@ -228,8 +228,8 @@ var _ = Describe("HyperFleetConfig CRD validation", func() {
228228 // unstructured object can carry an explicit empty scalar (the typed client
229229 // omits it via omitempty).
230230 u := minimalUnstructured ()
231- u .Object ["spec" ].(map [string ]interface {} )["api" ].(map [string ]interface {} )["auth" ] =
232- map [string ]interface {} {
231+ u .Object ["spec" ].(map [string ]any )["api" ].(map [string ]any )["auth" ] =
232+ map [string ]any {
233233 "enabled" : true ,
234234 "issuer" : testIssuerURL ,
235235 "audience" : "" ,
@@ -337,23 +337,23 @@ var _ = Describe("HyperFleetConfig CRD validation", func() {
337337 // typed client always sends.
338338 It ("rejects a config with no bundle" , func () {
339339 u := minimalUnstructured ()
340- delete (u .Object ["spec" ].(map [string ]interface {} ), "bundle" )
340+ delete (u .Object ["spec" ].(map [string ]any ), "bundle" )
341341 err := k8sClient .Create (ctx , u )
342342 Expect (err ).To (HaveOccurred ())
343343 Expect (err .Error ()).To (ContainSubstring ("spec.bundle" ))
344344 })
345345
346346 It ("rejects a config with no api" , func () {
347347 u := minimalUnstructured ()
348- delete (u .Object ["spec" ].(map [string ]interface {} ), "api" )
348+ delete (u .Object ["spec" ].(map [string ]any ), "api" )
349349 err := k8sClient .Create (ctx , u )
350350 Expect (err ).To (HaveOccurred ())
351351 Expect (err .Error ()).To (ContainSubstring ("spec.api" ))
352352 })
353353
354354 It ("rejects an api with no database" , func () {
355355 u := minimalUnstructured ()
356- api := u .Object ["spec" ].(map [string ]interface {} )["api" ].(map [string ]interface {} )
356+ api := u .Object ["spec" ].(map [string ]any )["api" ].(map [string ]any )
357357 delete (api , "database" )
358358 err := k8sClient .Create (ctx , u )
359359 Expect (err ).To (HaveOccurred ())
@@ -362,7 +362,7 @@ var _ = Describe("HyperFleetConfig CRD validation", func() {
362362
363363 It ("rejects an api with no auth" , func () {
364364 u := minimalUnstructured ()
365- api := u .Object ["spec" ].(map [string ]interface {} )["api" ].(map [string ]interface {} )
365+ api := u .Object ["spec" ].(map [string ]any )["api" ].(map [string ]any )
366366 delete (api , "auth" )
367367 err := k8sClient .Create (ctx , u )
368368 Expect (err ).To (HaveOccurred ())
@@ -409,13 +409,13 @@ func minimalUnstructured() *unstructured.Unstructured {
409409 u := & unstructured.Unstructured {}
410410 u .SetGroupVersionKind (hyperfleetv1alpha1 .GroupVersion .WithKind ("HyperFleetConfig" ))
411411 u .SetName (hyperfleetv1alpha1 .SingletonName )
412- u .Object ["spec" ] = map [string ]interface {} {
412+ u .Object ["spec" ] = map [string ]any {
413413 "bundle" : string (hyperfleetv1alpha1 .BundleCloudCAPI ),
414- "api" : map [string ]interface {} {
415- "database" : map [string ]interface {} {
416- "secretRef" : map [string ]interface {} {"name" : testDBSecretName },
414+ "api" : map [string ]any {
415+ "database" : map [string ]any {
416+ "secretRef" : map [string ]any {"name" : testDBSecretName },
417417 },
418- "auth" : map [string ]interface {} {
418+ "auth" : map [string ]any {
419419 // enabled omitted -> defaults to true
420420 "issuer" : testIssuerURL ,
421421 "audience" : testAudience ,
0 commit comments