@@ -1146,7 +1146,7 @@ var _ = Describe("Client", func() {
1146
1146
Expect (err ).NotTo (HaveOccurred ())
1147
1147
1148
1148
By ("patching the Deployment" )
1149
- err = cl .Patch (context .TODO (), dep , client .ConstantPatch (types .MergePatchType , mergePatch ))
1149
+ err = cl .Patch (context .TODO (), dep , client .RawPatch (types .MergePatchType , mergePatch ))
1150
1150
Expect (err ).NotTo (HaveOccurred ())
1151
1151
1152
1152
By ("validating patched Deployment has new annotation" )
@@ -1169,7 +1169,7 @@ var _ = Describe("Client", func() {
1169
1169
1170
1170
By ("patching the Deployment" )
1171
1171
dep .SetGroupVersionKind (depGvk )
1172
- err = cl .Patch (context .TODO (), dep , client .ConstantPatch (types .MergePatchType , mergePatch ))
1172
+ err = cl .Patch (context .TODO (), dep , client .RawPatch (types .MergePatchType , mergePatch ))
1173
1173
Expect (err ).NotTo (HaveOccurred ())
1174
1174
1175
1175
By ("validating updated Deployment has type information" )
@@ -1189,7 +1189,7 @@ var _ = Describe("Client", func() {
1189
1189
1190
1190
By ("patching the Node" )
1191
1191
nodeName := node .Name
1192
- err = cl .Patch (context .TODO (), node , client .ConstantPatch (types .MergePatchType , mergePatch ))
1192
+ err = cl .Patch (context .TODO (), node , client .RawPatch (types .MergePatchType , mergePatch ))
1193
1193
Expect (err ).NotTo (HaveOccurred ())
1194
1194
1195
1195
By ("validating the Node no longer exists" )
@@ -1207,7 +1207,7 @@ var _ = Describe("Client", func() {
1207
1207
Expect (cl ).NotTo (BeNil ())
1208
1208
1209
1209
By ("Patching node before it is ever created" )
1210
- err = cl .Patch (context .TODO (), node , client .ConstantPatch (types .MergePatchType , mergePatch ))
1210
+ err = cl .Patch (context .TODO (), node , client .RawPatch (types .MergePatchType , mergePatch ))
1211
1211
Expect (err ).To (HaveOccurred ())
1212
1212
1213
1213
close (done )
@@ -1229,7 +1229,7 @@ var _ = Describe("Client", func() {
1229
1229
Expect (err ).NotTo (HaveOccurred ())
1230
1230
1231
1231
By ("patching the Deployment fails" )
1232
- err = cl .Patch (context .TODO (), dep , client .ConstantPatch (types .MergePatchType , mergePatch ))
1232
+ err = cl .Patch (context .TODO (), dep , client .RawPatch (types .MergePatchType , mergePatch ))
1233
1233
Expect (err ).To (HaveOccurred ())
1234
1234
Expect (err .Error ()).To (ContainSubstring ("no kind is registered for the type" ))
1235
1235
@@ -1251,7 +1251,7 @@ var _ = Describe("Client", func() {
1251
1251
Expect (err ).NotTo (HaveOccurred ())
1252
1252
1253
1253
By ("patching the Deployment with dry-run" )
1254
- err = cl .Patch (context .TODO (), dep , client .ConstantPatch (types .MergePatchType , mergePatch ), client .PatchDryRunAll )
1254
+ err = cl .Patch (context .TODO (), dep , client .RawPatch (types .MergePatchType , mergePatch ), client .PatchDryRunAll )
1255
1255
Expect (err ).NotTo (HaveOccurred ())
1256
1256
1257
1257
By ("validating patched Deployment doesn't have the new annotation" )
@@ -1280,7 +1280,7 @@ var _ = Describe("Client", func() {
1280
1280
Kind : "Deployment" ,
1281
1281
Version : "v1" ,
1282
1282
})
1283
- err = cl .Patch (context .TODO (), u , client .ConstantPatch (types .MergePatchType , mergePatch ))
1283
+ err = cl .Patch (context .TODO (), u , client .RawPatch (types .MergePatchType , mergePatch ))
1284
1284
Expect (err ).NotTo (HaveOccurred ())
1285
1285
1286
1286
By ("validating patched Deployment has new annotation" )
@@ -1305,7 +1305,7 @@ var _ = Describe("Client", func() {
1305
1305
u := & unstructured.Unstructured {}
1306
1306
Expect (scheme .Convert (dep , u , nil )).To (Succeed ())
1307
1307
u .SetGroupVersionKind (depGvk )
1308
- err = cl .Patch (context .TODO (), u , client .ConstantPatch (types .MergePatchType , mergePatch ))
1308
+ err = cl .Patch (context .TODO (), u , client .RawPatch (types .MergePatchType , mergePatch ))
1309
1309
Expect (err ).NotTo (HaveOccurred ())
1310
1310
1311
1311
By ("validating updated Deployment has type information" )
@@ -1332,7 +1332,7 @@ var _ = Describe("Client", func() {
1332
1332
Kind : "Node" ,
1333
1333
Version : "v1" ,
1334
1334
})
1335
- err = cl .Patch (context .TODO (), u , client .ConstantPatch (types .MergePatchType , mergePatch ))
1335
+ err = cl .Patch (context .TODO (), u , client .RawPatch (types .MergePatchType , mergePatch ))
1336
1336
Expect (err ).NotTo (HaveOccurred ())
1337
1337
1338
1338
By ("validating patched Node has new annotation" )
@@ -1357,7 +1357,7 @@ var _ = Describe("Client", func() {
1357
1357
Kind : "Node" ,
1358
1358
Version : "v1" ,
1359
1359
})
1360
- err = cl .Patch (context .TODO (), node , client .ConstantPatch (types .MergePatchType , mergePatch ))
1360
+ err = cl .Patch (context .TODO (), node , client .RawPatch (types .MergePatchType , mergePatch ))
1361
1361
Expect (err ).To (HaveOccurred ())
1362
1362
1363
1363
close (done )
@@ -1382,7 +1382,7 @@ var _ = Describe("Client", func() {
1382
1382
Kind : "Deployment" ,
1383
1383
Version : "v1" ,
1384
1384
})
1385
- err = cl .Patch (context .TODO (), u , client .ConstantPatch (types .MergePatchType , mergePatch ), client .PatchDryRunAll )
1385
+ err = cl .Patch (context .TODO (), u , client .RawPatch (types .MergePatchType , mergePatch ), client .PatchDryRunAll )
1386
1386
Expect (err ).NotTo (HaveOccurred ())
1387
1387
1388
1388
By ("validating patched Deployment does not have the new annotation" )
0 commit comments