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",
...
],
...
)
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
BUILD