Skip to content

Enhance HIP 15 for Helm image annotations with conditions and tags support #277

Open

Description

@Boojapho

When implementing image annotations similar to the current HIP 15 draft, we quickly noticed that images were dependent on feature flags. In our case, we had one of three images that would be selected depending on the cloud environment you were using.

To create an accurate SBOM, we propose we enhance HIP 15 to include optional conditions and tags, just like dependencies.

This would allow a more accurate list of images for a deployment by using the Helm values. Of course, you could also simply ignore the conditions/tags to produce a comprehensive list of all possible images that may be used by the chart.

Activity

  1. Racer159 commented on May 15, 2023

    @Racer159

    Just adding my 2 pennies as folks potentially consider this - I agree with the above as having conditions also helps with bringing more precisely what you need to disconnected environments - Zarf (a project for disconnected cloud deployments) implements some optional conditions on these annotations already: https://github.com/defenseunicorns/zarf/blob/95777d038bc59963b3ae33aaa244ad1fd014fd82/src/internal/packager/helm/images.go#L78

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions