@@ -295,7 +295,7 @@ func Test_Reconcile(t *testing.T) {
295295 disableSecretTargets bool
296296 expResult ctrl.Result
297297 expError bool
298- expPatches []interface {}
298+ expPatches []any
299299 expBundlePatch * trustapi.BundleStatus
300300 expEvent string
301301 targetNamespaces []string
@@ -405,7 +405,7 @@ func Test_Reconcile(t *testing.T) {
405405 },
406406 existingSecrets : []client.Object {sourceSecret },
407407 expError : false ,
408- expPatches : []interface {} {
408+ expPatches : []any {
409409 configMapPatch (baseBundle .Name , trustNamespace , map [string ]string {targetKey : dummy .DefaultJoinedCerts ()}, nil , ptr .To (targetKey ), nil ),
410410 configMapPatch (baseBundle .Name , "ns-1" , map [string ]string {targetKey : dummy .DefaultJoinedCerts ()}, nil , ptr .To (targetKey ), nil ),
411411 configMapPatch (baseBundle .Name , "ns-2" , map [string ]string {targetKey : dummy .DefaultJoinedCerts ()}, nil , ptr .To (targetKey ), nil ),
@@ -458,7 +458,7 @@ func Test_Reconcile(t *testing.T) {
458458 ),
459459 },
460460 expError : false ,
461- expPatches : []interface {} {
461+ expPatches : []any {
462462 secretPatch (baseBundle .Name , trustNamespace , map [string ]string {targetKey : dummy .DefaultJoinedCerts ()}, ptr .To (targetKey ), nil ),
463463 secretPatch (baseBundle .Name , "ns-1" , map [string ]string {targetKey : dummy .DefaultJoinedCerts ()}, ptr .To (targetKey ), nil ),
464464 secretPatch (baseBundle .Name , "ns-2" , map [string ]string {targetKey : dummy .DefaultJoinedCerts ()}, ptr .To (targetKey ), nil ),
@@ -511,7 +511,7 @@ func Test_Reconcile(t *testing.T) {
511511 gen .SetBundleTargetAdditionalFormats (pkcs12DefaultAdditionalFormats ),
512512 )},
513513 expError : false ,
514- expPatches : []interface {} {
514+ expPatches : []any {
515515 configMapPatch (baseBundle .Name , "trust-namespace" , map [string ]string {
516516 targetKey : dummy .DefaultJoinedCerts (),
517517 }, map [string ][]byte {
@@ -577,7 +577,7 @@ func Test_Reconcile(t *testing.T) {
577577 ),
578578 },
579579 expError : false ,
580- expPatches : []interface {} {
580+ expPatches : []any {
581581 configMapPatch (baseBundle .Name , "trust-namespace" , map [string ]string {
582582 targetKey : dummy .DefaultJoinedCerts (),
583583 }, map [string ][]byte {
@@ -652,7 +652,7 @@ func Test_Reconcile(t *testing.T) {
652652 ),
653653 },
654654 expError : false ,
655- expPatches : []interface {} {},
655+ expPatches : []any {},
656656 expBundlePatch : & trustapi.BundleStatus {
657657 Conditions : []metav1.Condition {
658658 {
@@ -711,7 +711,7 @@ func Test_Reconcile(t *testing.T) {
711711 ),
712712 },
713713 expError : false ,
714- expPatches : []interface {} {
714+ expPatches : []any {
715715 configMapPatch (baseBundle .Name , "trust-namespace" , map [string ]string {
716716 targetKey : dummy .DefaultJoinedCerts (),
717717 }, map [string ][]byte {
@@ -748,7 +748,7 @@ func Test_Reconcile(t *testing.T) {
748748 },
749749 )},
750750 expError : false ,
751- expPatches : []interface {} {
751+ expPatches : []any {
752752 configMapPatch (baseBundle .Name , trustNamespace , map [string ]string {targetKey : dummy .DefaultJoinedCerts ()}, nil , ptr .To (targetKey ), nil ),
753753 configMapPatch (baseBundle .Name , "ns-1" , map [string ]string {targetKey : dummy .DefaultJoinedCerts ()}, nil , ptr .To (targetKey ), nil ),
754754 configMapPatch (baseBundle .Name , "ns-2" , map [string ]string {targetKey : dummy .DefaultJoinedCerts ()}, nil , ptr .To (targetKey ), nil ),
@@ -782,7 +782,7 @@ func Test_Reconcile(t *testing.T) {
782782 existingSecrets : []client.Object {sourceSecret },
783783 existingBundles : []client.Object {gen .BundleFrom (baseBundle )},
784784 expError : false ,
785- expPatches : []interface {} {
785+ expPatches : []any {
786786 configMapPatch (baseBundle .Name , trustNamespace , map [string ]string {targetKey : dummy .DefaultJoinedCerts ()}, nil , ptr .To (targetKey ), nil ),
787787 configMapPatch (baseBundle .Name , "ns-1" , map [string ]string {targetKey : dummy .DefaultJoinedCerts ()}, nil , ptr .To (targetKey ), nil ),
788788 configMapPatch (baseBundle .Name , "ns-2" , map [string ]string {targetKey : dummy .DefaultJoinedCerts ()}, nil , ptr .To (targetKey ), nil ),
@@ -821,7 +821,7 @@ func Test_Reconcile(t *testing.T) {
821821 existingBundles : []client.Object {gen .BundleFrom (baseBundle ,
822822 gen .SetBundleTargetNamespaceSelectorMatchLabels (map [string ]string {"foo" : "bar" }))},
823823 expError : false ,
824- expPatches : []interface {} {
824+ expPatches : []any {
825825 configMapPatch (baseBundle .Name , "random-namespace" , map [string ]string {targetKey : dummy .DefaultJoinedCerts ()}, nil , ptr .To (targetKey ), nil ),
826826 configMapPatch (baseBundle .Name , "another-random-namespace" , map [string ]string {targetKey : dummy .DefaultJoinedCerts ()}, nil , ptr .To (targetKey ), nil ),
827827 },
@@ -873,7 +873,7 @@ func Test_Reconcile(t *testing.T) {
873873 gen .SetBundleTargetNamespaceSelectorMatchLabels (map [string ]string {"foo" : "bar" }),
874874 )},
875875 expError : false ,
876- expPatches : []interface {} {
876+ expPatches : []any {
877877 configMapPatch (baseBundle .Name , trustNamespace , map [string ]string {}, nil , nil , nil ),
878878 configMapPatch (baseBundle .Name , "ns-1" , map [string ]string {}, nil , nil , nil ),
879879 configMapPatch (baseBundle .Name , "ns-2" , map [string ]string {}, nil , nil , nil ),
@@ -938,7 +938,7 @@ func Test_Reconcile(t *testing.T) {
938938 })),
939939 },
940940 expError : false ,
941- expPatches : []interface {} {
941+ expPatches : []any {
942942 configMapPatch (baseBundle .Name , trustNamespace , map [string ]string {targetKey : dummy .DefaultJoinedCerts ()}, nil , ptr .To (targetKey ), nil ),
943943 configMapPatch (baseBundle .Name , "ns-1" , map [string ]string {targetKey : dummy .DefaultJoinedCerts ()}, nil , ptr .To (targetKey ), nil ),
944944 configMapPatch (baseBundle .Name , "ns-2" , map [string ]string {targetKey : dummy .DefaultJoinedCerts ()}, nil , ptr .To (targetKey ), nil ),
@@ -1130,7 +1130,7 @@ func Test_Reconcile(t *testing.T) {
11301130 },
11311131 configureDefaultPackage : true ,
11321132 expError : false ,
1133- expPatches : []interface {} {
1133+ expPatches : []any {
11341134 configMapPatch (baseBundle .Name , trustNamespace , map [string ]string {targetKey : dummy .JoinCerts (dummy .TestCertificate2 , dummy .TestCertificate1 , dummy .TestCertificate3 , dummy .TestCertificate5 )}, nil , ptr .To (targetKey ), nil ),
11351135 configMapPatch (baseBundle .Name , "ns-1" , map [string ]string {targetKey : dummy .JoinCerts (dummy .TestCertificate2 , dummy .TestCertificate1 , dummy .TestCertificate3 , dummy .TestCertificate5 )}, nil , ptr .To (targetKey ), nil ),
11361136 configMapPatch (baseBundle .Name , "ns-2" , map [string ]string {targetKey : dummy .JoinCerts (dummy .TestCertificate2 , dummy .TestCertificate1 , dummy .TestCertificate3 , dummy .TestCertificate5 )}, nil , ptr .To (targetKey ), nil ),
@@ -1199,7 +1199,7 @@ func Test_Reconcile(t *testing.T) {
11991199 )},
12001200 configureDefaultPackage : true ,
12011201 expError : false ,
1202- expPatches : []interface {} {
1202+ expPatches : []any {
12031203 configMapPatch (baseBundle .Name , trustNamespace , map [string ]string {targetKey : dummy .DefaultJoinedCerts ()}, nil , ptr .To (targetKey ), nil ),
12041204 configMapPatch (baseBundle .Name , "ns-1" , map [string ]string {targetKey : dummy .DefaultJoinedCerts ()}, nil , ptr .To (targetKey ), nil ),
12051205 configMapPatch (baseBundle .Name , "ns-2" , map [string ]string {targetKey : dummy .DefaultJoinedCerts ()}, nil , ptr .To (targetKey ), nil ),
@@ -1271,7 +1271,7 @@ func Test_Reconcile(t *testing.T) {
12711271 )},
12721272 configureDefaultPackage : true ,
12731273 expError : false ,
1274- expPatches : []interface {} {
1274+ expPatches : []any {
12751275 configMapPatch (baseBundle .Name , trustNamespace , nil , nil , nil , nil ),
12761276 configMapPatch (baseBundle .Name , "ns-1" , nil , nil , nil , nil ),
12771277 configMapPatch (baseBundle .Name , "ns-2" , nil , nil , nil , nil ),
@@ -1346,7 +1346,7 @@ func Test_Reconcile(t *testing.T) {
13461346 )},
13471347 configureDefaultPackage : true ,
13481348 expError : false ,
1349- expPatches : []interface {} {
1349+ expPatches : []any {
13501350 secretPatch (baseBundle .Name , trustNamespace , map [string ]string {targetKey : dummy .DefaultJoinedCerts ()}, ptr .To (targetKey ), nil ),
13511351 secretPatch (baseBundle .Name , "ns-1" , map [string ]string {targetKey : dummy .DefaultJoinedCerts ()}, ptr .To (targetKey ), nil ),
13521352 secretPatch (baseBundle .Name , "ns-2" , map [string ]string {targetKey : dummy .DefaultJoinedCerts ()}, ptr .To (targetKey ), nil ),
@@ -1394,7 +1394,7 @@ func Test_Reconcile(t *testing.T) {
13941394 )},
13951395 configureDefaultPackage : true ,
13961396 expError : false ,
1397- expPatches : []interface {} {},
1397+ expPatches : []any {},
13981398 expBundlePatch : & trustapi.BundleStatus {
13991399 Conditions : []metav1.Condition {
14001400 {
@@ -1457,7 +1457,7 @@ func Test_Reconcile(t *testing.T) {
14571457 }),
14581458 )},
14591459 expError : false ,
1460- expPatches : []interface {} {
1460+ expPatches : []any {
14611461 configMapPatch (baseBundle .Name , trustNamespace , map [string ]string {targetKey : dummy .JoinCerts (dummy .TestCertificate2 , dummy .TestCertificate1 , dummy .TestCertificate3 )}, nil , ptr .To (targetKey ), nil ),
14621462 configMapPatch (baseBundle .Name , "ns-1" , map [string ]string {targetKey : dummy .JoinCerts (dummy .TestCertificate2 , dummy .TestCertificate1 , dummy .TestCertificate3 )}, nil , ptr .To (targetKey ), nil ),
14631463 configMapPatch (baseBundle .Name , "ns-2" , map [string ]string {targetKey : dummy .JoinCerts (dummy .TestCertificate2 , dummy .TestCertificate1 , dummy .TestCertificate3 )}, nil , ptr .To (targetKey ), nil ),
@@ -1488,7 +1488,7 @@ func Test_Reconcile(t *testing.T) {
14881488 },
14891489 targetNamespaces : []string {"ns-1" , "ns-2" },
14901490 expError : false ,
1491- expPatches : []interface {} {
1491+ expPatches : []any {
14921492 configMapPatch (baseBundle .Name , "ns-1" , map [string ]string {targetKey : dummy .DefaultJoinedCerts ()}, nil , ptr .To (targetKey ), nil ),
14931493 configMapPatch (baseBundle .Name , "ns-2" , map [string ]string {targetKey : dummy .DefaultJoinedCerts ()}, nil , ptr .To (targetKey ), nil ),
14941494 },
@@ -1548,7 +1548,7 @@ func Test_Reconcile(t *testing.T) {
15481548 },
15491549 targetNamespaces : []string {"ns-1" , "ns-2" },
15501550 expError : false ,
1551- expPatches : []interface {} {
1551+ expPatches : []any {
15521552 configMapPatch (baseBundle .Name , "ns-1" , map [string ]string {targetKey : dummy .DefaultJoinedCerts ()}, nil , ptr .To (targetKey ), nil ),
15531553 configMapPatch (baseBundle .Name , "ns-2" , map [string ]string {targetKey : dummy .DefaultJoinedCerts ()}, nil , ptr .To (targetKey ), nil ),
15541554 },
@@ -1594,7 +1594,7 @@ func Test_Reconcile(t *testing.T) {
15941594
15951595 var (
15961596 logMutex sync.Mutex
1597- resourcePatches []interface {}
1597+ resourcePatches []any
15981598 )
15991599
16001600 _ , ctx := ktesting .NewTestContext (t )
@@ -1615,7 +1615,7 @@ func Test_Reconcile(t *testing.T) {
16151615 targetReconciler : & target.Reconciler {
16161616 Client : fakeClient ,
16171617 Cache : fakeClient ,
1618- PatchResourceOverwrite : func (ctx context.Context , obj interface {} ) error {
1618+ PatchResourceOverwrite : func (ctx context.Context , obj any ) error {
16191619 logMutex .Lock ()
16201620 defer logMutex .Unlock ()
16211621
0 commit comments