Skip to content

Commit

Permalink
Update internal/cmd/operator-sdk/generate/internal/relatedimages.go
Browse files Browse the repository at this point in the history
Co-authored-by: Jesus Rodriguez <jmrodri@gmail.com>
  • Loading branch information
ryantking and jmrodri authored Apr 12, 2022
1 parent 0b1e41c commit 3015115
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func (c *relatedImageCollector) collectedRelatedImages() []operatorsv1alpha1.Rel
name = relatedImage.containerRef + "-" + name
}

// Only add the related image to the final list if its the first occurrence of an image.
// Only add the related image to the final list if it's the first occurrence of an image.
// Blank out the name since the image is used multiple times and warn the user.
// Multiple containers using she same related image should use the same exact name.
if relatedImages := c.relatedImagesByImageRef[relatedImage.imageRef]; len(relatedImages) > 1 {
Expand Down

0 comments on commit 3015115

Please sign in to comment.