Skip to content

Add support for passing external images to helm_chart.images #206

@bcsgh

Description

@bcsgh

As it stands, publishing a chart with an image not generated by the current module is a bit of a pain. It either needs to be hard code into the chart (which runs afoul of a number of policy enforcement tools) or pulled and then re-pushed. It would be nice to be able to simply directly refence the same label that would be used as a base when creating a derived image.

For example:

MODULE.bazel

oci = use_extension("@rules_oci//oci:extensions.bzl", "oci")
oci.pull(
    name = "python_3_12",
    image = "python:3.12-slim-bullseye",
    ...
)
use_repo(oci, "python_3_12", "python_3_12_linux_amd64")

BUILD

helm_chart(
    name = "thing",
    images = [
        "@python_3_12_linux_amd64",
        ...
    ],
    ...
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions