@@ -2618,15 +2618,15 @@ var _ = Describe("Fake client", func() {
2618
2618
obj .SetName ("foo" )
2619
2619
Expect (unstructured .SetNestedField (obj .Object , map [string ]any {"some" : "data" }, "data" )).To (Succeed ())
2620
2620
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 ())
2622
2622
2623
2623
cm := & corev1.ConfigMap {ObjectMeta : metav1.ObjectMeta {Name : "foo" }}
2624
2624
2625
2625
Expect (cl .Get (ctx , client .ObjectKeyFromObject (cm ), cm )).To (Succeed ())
2626
2626
Expect (cm .Data ).To (Equal (map [string ]string {"some" : "data" }))
2627
2627
2628
2628
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 ())
2630
2630
2631
2631
Expect (cl .Get (ctx , client .ObjectKeyFromObject (cm ), cm )).To (Succeed ())
2632
2632
Expect (cm .Data ).To (Equal (map [string ]string {"other" : "data" }))
@@ -2642,13 +2642,13 @@ var _ = Describe("Fake client", func() {
2642
2642
2643
2643
Expect (unstructured .SetNestedField (obj .Object , map [string ]any {"some" : "data" }, "spec" )).To (Succeed ())
2644
2644
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 ())
2646
2646
2647
2647
Expect (cl .Get (ctx , client .ObjectKeyFromObject (result ), result )).To (Succeed ())
2648
2648
Expect (result .Object ["spec" ]).To (Equal (map [string ]any {"some" : "data" }))
2649
2649
2650
2650
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 ())
2652
2652
2653
2653
Expect (cl .Get (ctx , client .ObjectKeyFromObject (result ), result )).To (Succeed ())
2654
2654
Expect (result .Object ["spec" ]).To (Equal (map [string ]any {"other" : "data" }))
@@ -2662,9 +2662,9 @@ var _ = Describe("Fake client", func() {
2662
2662
obj .SetName ("foo" )
2663
2663
Expect (unstructured .SetNestedField (obj .Object , map [string ]any {"some" : "data" }, "data" )).To (Succeed ())
2664
2664
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 ())
2666
2666
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" ))
2668
2668
Expect (err ).To (HaveOccurred ())
2669
2669
Expect (err .Error ()).To (ContainSubstring ("metadata.managedFields must be nil" ))
2670
2670
})
@@ -2680,15 +2680,15 @@ var _ = Describe("Fake client", func() {
2680
2680
2681
2681
Expect (unstructured .SetNestedField (obj .Object , map [string ]any {"some" : "data" }, "data" )).To (Succeed ())
2682
2682
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 ())
2684
2684
2685
2685
cm := & corev1.ConfigMap {ObjectMeta : metav1.ObjectMeta {Name : "foo" }}
2686
2686
2687
2687
Expect (cl .Get (ctx , client .ObjectKeyFromObject (cm ), cm )).To (Succeed ())
2688
2688
Expect (cm .Data ).To (Equal (map [string ]string {"some" : "data" }))
2689
2689
2690
2690
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 ())
2692
2692
2693
2693
Expect (cl .Get (ctx , client .ObjectKeyFromObject (cm ), cm )).To (Succeed ())
2694
2694
Expect (cm .Data ).To (Equal (map [string ]string {"other" : "data" }))
@@ -2734,7 +2734,7 @@ var _ = Describe("Fake client", func() {
2734
2734
"ssa" : "value" ,
2735
2735
},
2736
2736
}}
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 ())
2738
2738
_ , exists , err := unstructured .NestedFieldNoCopy (u .Object , "metadata" , "managedFields" )
2739
2739
Expect (err ).NotTo (HaveOccurred ())
2740
2740
Expect (exists ).To (BeTrue ())
0 commit comments