Skip to content

Commit

Permalink
Merge pull request #530 from redhatrises/multiarch_filter
Browse files Browse the repository at this point in the history
feat(node): handle multi-arch container images
  • Loading branch information
redhatrises authored May 1, 2024
2 parents cbe2614 + 65ca559 commit 31da5df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/registry/falcon_registry/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func (reg *FalconRegistry) LastContainerTag(ctx context.Context, sensorType falc
}

return lastTag(ctx, systemContext, reg.imageUriContainer(sensorType), func(tag string) bool {
tagContains := ".container.x86_64"
tagContains := ".container"
if sensorType == falcon.ImageSensor {
tagContains = ""
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/registry/falcon_registry/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func (reg *FalconRegistry) LastNodeTag(ctx context.Context, versionRequested *st

return lastTag(ctx, systemContext, reg.imageUriNode(), func(tag string) bool {
return (tag[0] >= '0' && tag[0] <= '9' &&
strings.Contains(tag, ".falcon-linux.x86_64") &&
strings.Contains(tag, ".falcon-linux") &&
(versionRequested == nil || strings.HasPrefix(tag, *versionRequested)))
})
}
Expand Down

0 comments on commit 31da5df

Please sign in to comment.