@@ -2618,15 +2618,15 @@ var _ = Describe("Fake client", func() {
26182618 obj .SetName ("foo" )
26192619 Expect (unstructured .SetNestedField (obj .Object , map [string ]any {"some" : "data" }, "data" )).To (Succeed ())
26202620
2621- Expect (cl .Patch (ctx , obj , client .Apply , client .FieldOwner ("foo" ))).To (Succeed ()) //nolint:staticcheck // will be removed once client.Apply is removed
2621+ Expect (cl .Patch (ctx , obj , client .Apply , client .FieldOwner ("foo" ))).To (Succeed ())
26222622
26232623 cm := & corev1.ConfigMap {ObjectMeta : metav1.ObjectMeta {Name : "foo" }}
26242624
26252625 Expect (cl .Get (ctx , client .ObjectKeyFromObject (cm ), cm )).To (Succeed ())
26262626 Expect (cm .Data ).To (Equal (map [string ]string {"some" : "data" }))
26272627
26282628 Expect (unstructured .SetNestedField (obj .Object , map [string ]any {"other" : "data" }, "data" )).To (Succeed ())
2629- Expect (cl .Patch (ctx , obj , client .Apply , client .FieldOwner ("foo" ))).To (Succeed ()) //nolint:staticcheck // will be removed once client.Apply is removed
2629+ Expect (cl .Patch (ctx , obj , client .Apply , client .FieldOwner ("foo" ))).To (Succeed ())
26302630
26312631 Expect (cl .Get (ctx , client .ObjectKeyFromObject (cm ), cm )).To (Succeed ())
26322632 Expect (cm .Data ).To (Equal (map [string ]string {"other" : "data" }))
@@ -2642,13 +2642,13 @@ var _ = Describe("Fake client", func() {
26422642
26432643 Expect (unstructured .SetNestedField (obj .Object , map [string ]any {"some" : "data" }, "spec" )).To (Succeed ())
26442644
2645- Expect (cl .Patch (ctx , obj , client .Apply , client .FieldOwner ("foo" ))).To (Succeed ()) //nolint:staticcheck // will be removed once client.Apply is removed
2645+ Expect (cl .Patch (ctx , obj , client .Apply , client .FieldOwner ("foo" ))).To (Succeed ())
26462646
26472647 Expect (cl .Get (ctx , client .ObjectKeyFromObject (result ), result )).To (Succeed ())
26482648 Expect (result .Object ["spec" ]).To (Equal (map [string ]any {"some" : "data" }))
26492649
26502650 Expect (unstructured .SetNestedField (obj .Object , map [string ]any {"other" : "data" }, "spec" )).To (Succeed ())
2651- Expect (cl .Patch (ctx , obj , client .Apply , client .FieldOwner ("foo" ))).To (Succeed ()) //nolint:staticcheck // will be removed once client.Apply is removed
2651+ Expect (cl .Patch (ctx , obj , client .Apply , client .FieldOwner ("foo" ))).To (Succeed ())
26522652
26532653 Expect (cl .Get (ctx , client .ObjectKeyFromObject (result ), result )).To (Succeed ())
26542654 Expect (result .Object ["spec" ]).To (Equal (map [string ]any {"other" : "data" }))
@@ -2662,9 +2662,9 @@ var _ = Describe("Fake client", func() {
26622662 obj .SetName ("foo" )
26632663 Expect (unstructured .SetNestedField (obj .Object , map [string ]any {"some" : "data" }, "data" )).To (Succeed ())
26642664
2665- Expect (cl .Patch (ctx , obj , client .Apply , client .FieldOwner ("foo" ))).To (Succeed ()) //nolint:staticcheck // will be removed once client.Apply is removed
2665+ Expect (cl .Patch (ctx , obj , client .Apply , client .FieldOwner ("foo" ))).To (Succeed ())
26662666
2667- err := cl .Patch (ctx , obj , client .Apply , client .FieldOwner ("foo" )) //nolint:staticcheck // will be removed once client.Apply is removed
2667+ err := cl .Patch (ctx , obj , client .Apply , client .FieldOwner ("foo" ))
26682668 Expect (err ).To (HaveOccurred ())
26692669 Expect (err .Error ()).To (ContainSubstring ("metadata.managedFields must be nil" ))
26702670 })
@@ -2680,15 +2680,15 @@ var _ = Describe("Fake client", func() {
26802680
26812681 Expect (unstructured .SetNestedField (obj .Object , map [string ]any {"some" : "data" }, "data" )).To (Succeed ())
26822682
2683- Expect (cl .Patch (ctx , obj , client .Apply , client .FieldOwner ("foo" ))).To (Succeed ()) //nolint:staticcheck // will be removed once client.Apply is removed
2683+ Expect (cl .Patch (ctx , obj , client .Apply , client .FieldOwner ("foo" ))).To (Succeed ())
26842684
26852685 cm := & corev1.ConfigMap {ObjectMeta : metav1.ObjectMeta {Name : "foo" }}
26862686
26872687 Expect (cl .Get (ctx , client .ObjectKeyFromObject (cm ), cm )).To (Succeed ())
26882688 Expect (cm .Data ).To (Equal (map [string ]string {"some" : "data" }))
26892689
26902690 Expect (unstructured .SetNestedField (obj .Object , map [string ]any {"other" : "data" }, "data" )).To (Succeed ())
2691- Expect (cl .Patch (ctx , obj , client .Apply , client .FieldOwner ("foo" ))).To (Succeed ()) //nolint:staticcheck // will be removed once client.Apply is removed
2691+ Expect (cl .Patch (ctx , obj , client .Apply , client .FieldOwner ("foo" ))).To (Succeed ())
26922692
26932693 Expect (cl .Get (ctx , client .ObjectKeyFromObject (cm ), cm )).To (Succeed ())
26942694 Expect (cm .Data ).To (Equal (map [string ]string {"other" : "data" }))
@@ -2734,7 +2734,7 @@ var _ = Describe("Fake client", func() {
27342734 "ssa" : "value" ,
27352735 },
27362736 }}
2737- Expect (cl .Patch (ctx , u , client .Apply , client .FieldOwner ("foo" ))).NotTo (HaveOccurred ()) //nolint:staticcheck // will be removed once client.Apply is removed
2737+ Expect (cl .Patch (ctx , u , client .Apply , client .FieldOwner ("foo" ))).NotTo (HaveOccurred ())
27382738 _ , exists , err := unstructured .NestedFieldNoCopy (u .Object , "metadata" , "managedFields" )
27392739 Expect (err ).NotTo (HaveOccurred ())
27402740 Expect (exists ).To (BeTrue ())
0 commit comments