2023-04-03 12:09:03 -04:00
|
|
|
# gazelle:ignore
|
|
|
|
|
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
|
|
|
load("//bazel/oci:containers.bzl", "helm_containers")
|
|
|
|
load("//bazel/oci:pin.bzl", "oci_go_source")
|
|
|
|
|
|
|
|
GENERATED_SRCS = [
|
|
|
|
":" + container["name"]
|
|
|
|
for container in helm_containers()
|
|
|
|
]
|
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "imageversion",
|
|
|
|
srcs = ["imageversion.go"] + GENERATED_SRCS, # keep
|
2023-11-22 08:52:56 -05:00
|
|
|
importpath = "github.com/edgelesssys/constellation/v2/internal/helm/imageversion",
|
|
|
|
visibility = ["//:__subpackages__"],
|
2023-04-03 12:09:03 -04:00
|
|
|
deps = ["//internal/containerimage"],
|
|
|
|
)
|
|
|
|
|
|
|
|
[
|
|
|
|
oci_go_source(
|
|
|
|
name = container["name"],
|
|
|
|
identifier = container["identifier"],
|
|
|
|
image_name = container["image_name"],
|
|
|
|
oci = container["oci"],
|
|
|
|
package = "imageversion",
|
2023-04-27 05:52:02 -04:00
|
|
|
repotag_file = container["repotag_file"],
|
2023-11-22 08:52:56 -05:00
|
|
|
visibility = ["//:__subpackages__"],
|
2023-04-03 12:09:03 -04:00
|
|
|
)
|
|
|
|
for container in helm_containers()
|
|
|
|
]
|
|
|
|
|
|
|
|
# TODO(malt3): add missing third-party images
|
|
|
|
# - logstash
|
|
|
|
# - filebeat
|
|
|
|
# - konnectivity-agent
|
|
|
|
# - konnectivity-server
|
|
|
|
# - node-maintenance-operator
|
|
|
|
# - gcp-guest-agent
|