@@ -2548,15 +2548,15 @@ var _ = Describe("Fake client", func() {
25482548 obj .SetName ("foo" )
25492549 Expect (unstructured .SetNestedField (obj .Object , map [string ]any {"some" : "data" }, "data" )).To (Succeed ())
25502550
2551- Expect (cl .Patch (ctx , obj , client .Apply , client .FieldOwner ("foo" ))).To (Succeed ())
2551+ Expect (cl .Patch (ctx , obj , client .Apply , client .FieldOwner ("foo" ))).To (Succeed ()) //nolint:staticcheck // will be removed once client.Apply is removed
25522552
25532553 cm := & corev1.ConfigMap {ObjectMeta : metav1.ObjectMeta {Name : "foo" }}
25542554
25552555 Expect (cl .Get (ctx , client .ObjectKeyFromObject (cm ), cm )).To (Succeed ())
25562556 Expect (cm .Data ).To (Equal (map [string ]string {"some" : "data" }))
25572557
25582558 Expect (unstructured .SetNestedField (obj .Object , map [string ]any {"other" : "data" }, "data" )).To (Succeed ())
2559- Expect (cl .Patch (ctx , obj , client .Apply , client .FieldOwner ("foo" ))).To (Succeed ())
2559+ Expect (cl .Patch (ctx , obj , client .Apply , client .FieldOwner ("foo" ))).To (Succeed ()) //nolint:staticcheck // will be removed once client.Apply is removed
25602560
25612561 Expect (cl .Get (ctx , client .ObjectKeyFromObject (cm ), cm )).To (Succeed ())
25622562 Expect (cm .Data ).To (Equal (map [string ]string {"other" : "data" }))
@@ -2572,13 +2572,13 @@ var _ = Describe("Fake client", func() {
25722572
25732573 Expect (unstructured .SetNestedField (obj .Object , map [string ]any {"some" : "data" }, "spec" )).To (Succeed ())
25742574
2575- Expect (cl .Patch (ctx , obj , client .Apply , client .FieldOwner ("foo" ))).To (Succeed ())
2575+ Expect (cl .Patch (ctx , obj , client .Apply , client .FieldOwner ("foo" ))).To (Succeed ()) //nolint:staticcheck // will be removed once client.Apply is removed
25762576
25772577 Expect (cl .Get (ctx , client .ObjectKeyFromObject (result ), result )).To (Succeed ())
25782578 Expect (result .Object ["spec" ]).To (Equal (map [string ]any {"some" : "data" }))
25792579
25802580 Expect (unstructured .SetNestedField (obj .Object , map [string ]any {"other" : "data" }, "spec" )).To (Succeed ())
2581- Expect (cl .Patch (ctx , obj , client .Apply , client .FieldOwner ("foo" ))).To (Succeed ())
2581+ Expect (cl .Patch (ctx , obj , client .Apply , client .FieldOwner ("foo" ))).To (Succeed ()) //nolint:staticcheck // will be removed once client.Apply is removed
25822582
25832583 Expect (cl .Get (ctx , client .ObjectKeyFromObject (result ), result )).To (Succeed ())
25842584 Expect (result .Object ["spec" ]).To (Equal (map [string ]any {"other" : "data" }))
@@ -2592,9 +2592,9 @@ var _ = Describe("Fake client", func() {
25922592 obj .SetName ("foo" )
25932593 Expect (unstructured .SetNestedField (obj .Object , map [string ]any {"some" : "data" }, "data" )).To (Succeed ())
25942594
2595- Expect (cl .Patch (ctx , obj , client .Apply , client .FieldOwner ("foo" ))).To (Succeed ())
2595+ Expect (cl .Patch (ctx , obj , client .Apply , client .FieldOwner ("foo" ))).To (Succeed ()) //nolint:staticcheck // will be removed once client.Apply is removed
25962596
2597- err := cl .Patch (ctx , obj , client .Apply , client .FieldOwner ("foo" ))
2597+ err := cl .Patch (ctx , obj , client .Apply , client .FieldOwner ("foo" )) //nolint:staticcheck // will be removed once client.Apply is removed
25982598 Expect (err ).To (HaveOccurred ())
25992599 Expect (err .Error ()).To (ContainSubstring ("metadata.managedFields must be nil" ))
26002600 })
@@ -2610,15 +2610,15 @@ var _ = Describe("Fake client", func() {
26102610
26112611 Expect (unstructured .SetNestedField (obj .Object , map [string ]any {"some" : "data" }, "data" )).To (Succeed ())
26122612
2613- Expect (cl .Patch (ctx , obj , client .Apply , client .FieldOwner ("foo" ))).To (Succeed ())
2613+ Expect (cl .Patch (ctx , obj , client .Apply , client .FieldOwner ("foo" ))).To (Succeed ()) //nolint:staticcheck // will be removed once client.Apply is removed
26142614
26152615 cm := & corev1.ConfigMap {ObjectMeta : metav1.ObjectMeta {Name : "foo" }}
26162616
26172617 Expect (cl .Get (ctx , client .ObjectKeyFromObject (cm ), cm )).To (Succeed ())
26182618 Expect (cm .Data ).To (Equal (map [string ]string {"some" : "data" }))
26192619
26202620 Expect (unstructured .SetNestedField (obj .Object , map [string ]any {"other" : "data" }, "data" )).To (Succeed ())
2621- Expect (cl .Patch (ctx , obj , client .Apply , client .FieldOwner ("foo" ))).To (Succeed ())
2621+ Expect (cl .Patch (ctx , obj , client .Apply , client .FieldOwner ("foo" ))).To (Succeed ()) //nolint:staticcheck // will be removed once client.Apply is removed
26222622
26232623 Expect (cl .Get (ctx , client .ObjectKeyFromObject (cm ), cm )).To (Succeed ())
26242624 Expect (cm .Data ).To (Equal (map [string ]string {"other" : "data" }))
@@ -2664,7 +2664,7 @@ var _ = Describe("Fake client", func() {
26642664 "ssa" : "value" ,
26652665 },
26662666 }}
2667- Expect (cl .Patch (ctx , u , client .Apply , client .FieldOwner ("foo" ))).NotTo (HaveOccurred ())
2667+ Expect (cl .Patch (ctx , u , client .Apply , client .FieldOwner ("foo" ))).NotTo (HaveOccurred ()) //nolint:staticcheck // will be removed once client.Apply is removed
26682668 _ , exists , err := unstructured .NestedFieldNoCopy (u .Object , "metadata" , "managedFields" )
26692669 Expect (err ).NotTo (HaveOccurred ())
26702670 Expect (exists ).To (BeTrue ())
0 commit comments