Skip to content

Commit ab2e4c8

Browse files
committed
Add note for potential inconsistency in resource matching logic
Signed-off-by: Jonathan Ogilvie <[email protected]>
1 parent fd31d0b commit ab2e4c8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmd/diff/diffprocessor/resource_manager.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,9 @@ func (m *DefaultResourceManager) findMatchingResource(
290290
continue
291291
}
292292

293+
// TODO: is this logic correct? we should definitely match composition-resource-name, even if the generateName
294+
// doesn't match. maybe as a fallback if we don't have the annotation?
295+
293296
// If we have a generateName, verify the match has the right prefix
294297
if generateName != "" {
295298
resName := res.GetName()

0 commit comments

Comments
 (0)