Skip to content

Commit

Permalink
Deprecates uncompressed sbom and image types
Browse files Browse the repository at this point in the history
  • Loading branch information
bomoko committed Feb 11, 2024
1 parent 352e77e commit d92ce3b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions internal/handler/messaging.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,13 @@ func preprocessIncomingMessageData(incoming *InsightsMessage) (ResourceDestinati
// Define insights type from incoming 'insightsType' label
if insights.InputType != "" {
switch insights.InputType {
case "sbom", "sbom-gz":
case "sbom":
return resource, insights, fmt.Errorf("insightsType of 'sbom' is deprecated, expect 'image-gz' - will not process")
case "sbom-gz":
insights.InsightsType = Sbom
case "image", "image-gz":
case "image":
return resource, insights, fmt.Errorf("insightsType of 'image' is deprecated, expect 'image-gz' - will not process")
case "image-gz":
insights.InsightsType = Image
case "direct":
insights.InsightsType = Direct
Expand Down

0 comments on commit d92ce3b

Please sign in to comment.