@@ -2719,15 +2719,15 @@ var _ = Describe("Fake client", func() {
27192719 obj .SetName ("foo" )
27202720 Expect (unstructured .SetNestedField (obj .Object , map [string ]any {"some" : "data" }, "data" )).To (Succeed ())
27212721
2722- Expect (cl .Patch (ctx , obj , client .Apply , client .FieldOwner ("foo" ))).To (Succeed ())
2722+ Expect (cl .Patch (ctx , obj , client .Apply , client .FieldOwner ("foo" ))).To (Succeed ()) //nolint:staticcheck // will be removed once client.Apply is removed
27232723
27242724 cm := & corev1.ConfigMap {ObjectMeta : metav1.ObjectMeta {Name : "foo" }}
27252725
27262726 Expect (cl .Get (ctx , client .ObjectKeyFromObject (cm ), cm )).To (Succeed ())
27272727 Expect (cm .Data ).To (Equal (map [string ]string {"some" : "data" }))
27282728
27292729 Expect (unstructured .SetNestedField (obj .Object , map [string ]any {"other" : "data" }, "data" )).To (Succeed ())
2730- Expect (cl .Patch (ctx , obj , client .Apply , client .FieldOwner ("foo" ))).To (Succeed ())
2730+ Expect (cl .Patch (ctx , obj , client .Apply , client .FieldOwner ("foo" ))).To (Succeed ()) //nolint:staticcheck // will be removed once client.Apply is removed
27312731
27322732 Expect (cl .Get (ctx , client .ObjectKeyFromObject (cm ), cm )).To (Succeed ())
27332733 Expect (cm .Data ).To (Equal (map [string ]string {"other" : "data" }))
@@ -2743,13 +2743,13 @@ var _ = Describe("Fake client", func() {
27432743
27442744 Expect (unstructured .SetNestedField (obj .Object , map [string ]any {"some" : "data" }, "spec" )).To (Succeed ())
27452745
2746- Expect (cl .Patch (ctx , obj , client .Apply , client .FieldOwner ("foo" ))).To (Succeed ())
2746+ Expect (cl .Patch (ctx , obj , client .Apply , client .FieldOwner ("foo" ))).To (Succeed ()) //nolint:staticcheck // will be removed once client.Apply is removed
27472747
27482748 Expect (cl .Get (ctx , client .ObjectKeyFromObject (result ), result )).To (Succeed ())
27492749 Expect (result .Object ["spec" ]).To (Equal (map [string ]any {"some" : "data" }))
27502750
27512751 Expect (unstructured .SetNestedField (obj .Object , map [string ]any {"other" : "data" }, "spec" )).To (Succeed ())
2752- Expect (cl .Patch (ctx , obj , client .Apply , client .FieldOwner ("foo" ))).To (Succeed ())
2752+ Expect (cl .Patch (ctx , obj , client .Apply , client .FieldOwner ("foo" ))).To (Succeed ()) //nolint:staticcheck // will be removed once client.Apply is removed
27532753
27542754 Expect (cl .Get (ctx , client .ObjectKeyFromObject (result ), result )).To (Succeed ())
27552755 Expect (result .Object ["spec" ]).To (Equal (map [string ]any {"other" : "data" }))
@@ -2763,9 +2763,9 @@ var _ = Describe("Fake client", func() {
27632763 obj .SetName ("foo" )
27642764 Expect (unstructured .SetNestedField (obj .Object , map [string ]any {"some" : "data" }, "data" )).To (Succeed ())
27652765
2766- Expect (cl .Patch (ctx , obj , client .Apply , client .FieldOwner ("foo" ))).To (Succeed ())
2766+ Expect (cl .Patch (ctx , obj , client .Apply , client .FieldOwner ("foo" ))).To (Succeed ()) //nolint:staticcheck // will be removed once client.Apply is removed
27672767
2768- err := cl .Patch (ctx , obj , client .Apply , client .FieldOwner ("foo" ))
2768+ err := cl .Patch (ctx , obj , client .Apply , client .FieldOwner ("foo" )) //nolint:staticcheck // will be removed once client.Apply is removed
27692769 Expect (err ).To (HaveOccurred ())
27702770 Expect (err .Error ()).To (ContainSubstring ("metadata.managedFields must be nil" ))
27712771 })
@@ -2781,15 +2781,15 @@ var _ = Describe("Fake client", func() {
27812781
27822782 Expect (unstructured .SetNestedField (obj .Object , map [string ]any {"some" : "data" }, "data" )).To (Succeed ())
27832783
2784- Expect (cl .Patch (ctx , obj , client .Apply , client .FieldOwner ("foo" ))).To (Succeed ())
2784+ Expect (cl .Patch (ctx , obj , client .Apply , client .FieldOwner ("foo" ))).To (Succeed ()) //nolint:staticcheck // will be removed once client.Apply is removed
27852785
27862786 cm := & corev1.ConfigMap {ObjectMeta : metav1.ObjectMeta {Name : "foo" }}
27872787
27882788 Expect (cl .Get (ctx , client .ObjectKeyFromObject (cm ), cm )).To (Succeed ())
27892789 Expect (cm .Data ).To (Equal (map [string ]string {"some" : "data" }))
27902790
27912791 Expect (unstructured .SetNestedField (obj .Object , map [string ]any {"other" : "data" }, "data" )).To (Succeed ())
2792- Expect (cl .Patch (ctx , obj , client .Apply , client .FieldOwner ("foo" ))).To (Succeed ())
2792+ Expect (cl .Patch (ctx , obj , client .Apply , client .FieldOwner ("foo" ))).To (Succeed ()) //nolint:staticcheck // will be removed once client.Apply is removed
27932793
27942794 Expect (cl .Get (ctx , client .ObjectKeyFromObject (cm ), cm )).To (Succeed ())
27952795 Expect (cm .Data ).To (Equal (map [string ]string {"other" : "data" }))
@@ -2835,7 +2835,7 @@ var _ = Describe("Fake client", func() {
28352835 "ssa" : "value" ,
28362836 },
28372837 }}
2838- Expect (cl .Patch (ctx , u , client .Apply , client .FieldOwner ("foo" ))).NotTo (HaveOccurred ())
2838+ Expect (cl .Patch (ctx , u , client .Apply , client .FieldOwner ("foo" ))).NotTo (HaveOccurred ()) //nolint:staticcheck // will be removed once client.Apply is removed
28392839 _ , exists , err := unstructured .NestedFieldNoCopy (u .Object , "metadata" , "managedFields" )
28402840 Expect (err ).NotTo (HaveOccurred ())
28412841 Expect (exists ).To (BeTrue ())
0 commit comments