@@ -113,11 +113,11 @@ var _ = Describe("Namespace controller", func() {
113113 role1 := roleRes .DeepCopy ()
114114 role1 .SetNamespace ("tmpl" )
115115 role1 .SetName ("role1" )
116- role1 .Object ["rules" ] = []interface {} {
117- map [string ]interface {} {
118- "apiGroups" : []interface {} {"" },
119- "resources" : []interface {} {"pods" },
120- "verbs" : []interface {} {"get" , "watch" , "list" },
116+ role1 .Object ["rules" ] = []any {
117+ map [string ]any {
118+ "apiGroups" : []any {"" },
119+ "resources" : []any {"pods" },
120+ "verbs" : []any {"get" , "watch" , "list" },
121121 },
122122 }
123123 Expect (k8sClient .Create (ctx , role1 )).To (Succeed ())
@@ -126,19 +126,19 @@ var _ = Describe("Namespace controller", func() {
126126 role2 .SetNamespace ("tmpl" )
127127 role2 .SetName ("role2" )
128128 role2 .SetAnnotations (map [string ]string {constants .AnnPropagate : constants .PropagateCreate })
129- role2 .Object ["rules" ] = []interface {} {
130- map [string ]interface {} {
131- "apiGroups" : []interface {} {"" },
132- "resources" : []interface {} {"pods" },
133- "verbs" : []interface {} {"get" , "watch" , "list" },
129+ role2 .Object ["rules" ] = []any {
130+ map [string ]any {
131+ "apiGroups" : []any {"" },
132+ "resources" : []any {"pods" },
133+ "verbs" : []any {"get" , "watch" , "list" },
134134 },
135135 }
136136 Expect (k8sClient .Create (ctx , role2 )).To (Succeed ())
137137
138138 secret := secretRes .DeepCopy ()
139139 secret .SetNamespace ("tmpl" )
140140 secret .SetName ("foo" )
141- secret .Object ["data" ] = map [string ]interface {} {
141+ secret .Object ["data" ] = map [string ]any {
142142 "foo" : "MjAyMC0wOS0xM1QwNDozOToxMFo=" ,
143143 }
144144 secret .SetAnnotations (map [string ]string {constants .AnnPropagate : constants .PropagateUpdate })
@@ -151,7 +151,7 @@ var _ = Describe("Namespace controller", func() {
151151 secret2 := secretRes .DeepCopy ()
152152 secret2 .SetNamespace ("ns1" )
153153 secret2 .SetName ("bar" )
154- secret2 .Object ["data" ] = map [string ]interface {} {
154+ secret2 .Object ["data" ] = map [string ]any {
155155 "bar" : "MjAyMC0wOS0xM1QwNDozOToxMFo=" ,
156156 }
157157 secret2 .SetAnnotations (map [string ]string {constants .AnnPropagate : constants .PropagateUpdate })
0 commit comments