File tree 1 file changed +8
-4
lines changed
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -88,10 +88,10 @@ func (rm *resourceManager) requiredFieldsMissingForCreateNetworkAcl(
88
88
89
89
func (rm * resourceManager ) createEntries (
90
90
ctx context.Context ,
91
- r * resource ,
91
+ desired * resource ,
92
92
) error {
93
- if r .ko .Spec .Entries != nil {
94
- if err := rm .syncEntries (ctx , r , nil ); err != nil {
93
+ if desired .ko .Spec .Entries != nil {
94
+ if err := rm .syncEntries (ctx , desired , nil ); err != nil {
95
95
return err
96
96
}
97
97
}
@@ -351,7 +351,6 @@ func (rm *resourceManager) syncEntries(
351
351
toAdd = append (toAdd , desiredEntry )
352
352
}
353
353
}
354
-
355
354
if latest != nil {
356
355
// Filter out AWS default rules from latest entries before comparison
357
356
// to ensure consistent state management between desired and actual
@@ -382,6 +381,11 @@ func (rm *resourceManager) syncEntries(
382
381
}
383
382
}
384
383
384
+ // During create latest is nil, just add the entries when sync is called via createEntries
385
+ if latest == nil {
386
+ toAdd = append (toAdd , desired .ko .Spec .Entries ... )
387
+ }
388
+
385
389
for _ , entry := range toAdd {
386
390
if entry == nil {
387
391
continue
You can’t perform that action at this time.
0 commit comments