Skip to content

Commit

Permalink
Merge pull request #518 from redhatrises/iar_cs_tag
Browse files Browse the repository at this point in the history
fix(iar): return IAR tags
  • Loading branch information
ryanjpayne authored Mar 19, 2024
2 parents 329bf3a + 7385d93 commit eb2f053
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkg/registry/falcon_registry/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,13 @@ func (reg *FalconRegistry) LastContainerTag(ctx context.Context, sensorType falc
}

return lastTag(ctx, systemContext, reg.imageUriContainer(sensorType), func(tag string) bool {
tagContains := ".container.x86_64"
if sensorType == falcon.ImageSensor {
tagContains = ""
}

return (tag[0] >= '0' && tag[0] <= '9' &&
strings.Contains(tag, ".container.x86_64") &&
strings.Contains(tag, tagContains) &&
(versionRequested == nil || strings.HasPrefix(tag, *versionRequested)))
})
}
Expand Down

0 comments on commit eb2f053

Please sign in to comment.