@@ -288,6 +288,13 @@ func SetResource(
288
288
indentLevel + 1 ,
289
289
)
290
290
}
291
+ out += fmt .Sprintf (
292
+ "%s} else {\n " , indent ,
293
+ )
294
+ out += fmt .Sprintf (
295
+ "%s%s%s.%s = nil\n " , indent , indent ,
296
+ targetAdaptedVarName , f .Names .Camel ,
297
+ )
291
298
out += fmt .Sprintf (
292
299
"%s}\n " , indent ,
293
300
)
@@ -340,6 +347,8 @@ func ListMemberNameInReadManyOutput(
340
347
// }
341
348
// if elem.AtRestEncryptionEnabled != nil {
342
349
// ko.Status.AtRestEncryptionEnabled = elem.AtRestEncryptionEnabled
350
+ // } else {
351
+ // ko.Status.AtRestEncryptionEnabled = nil
343
352
// }
344
353
// ...
345
354
// if elem.CacheClusterId != nil {
@@ -349,6 +358,8 @@ func ListMemberNameInReadManyOutput(
349
358
// }
350
359
// }
351
360
// r.ko.Spec.CacheClusterID = elem.CacheClusterId
361
+ // } else {
362
+ // r.ko.Spec.CacheClusterID = nil
352
363
// }
353
364
// found = true
354
365
// }
@@ -545,7 +556,14 @@ func setResourceReadMany(
545
556
)
546
557
}
547
558
out += fmt .Sprintf (
548
- "%s\t }\n " , indent ,
559
+ "%s%s} else {\n " , indent , indent ,
560
+ )
561
+ out += fmt .Sprintf (
562
+ "%s%s%s%s.%s = nil\n " , indent , indent , indent ,
563
+ targetAdaptedVarName , f .Names .Camel ,
564
+ )
565
+ out += fmt .Sprintf (
566
+ "%s%s}\n " , indent , indent ,
549
567
)
550
568
}
551
569
// When we don't have custom matching/filtering logic for the list
0 commit comments