constellation/internal/versions/components/BUILD.bazel
Daniel Weiße a1f67d0884
cli: fix upgrades when using outdated Kubernetes patch version (#2718)
* Fix missing image for Constellation operators in our Helm charts if the desired Kubernetes patch version is no longer supported (but Kubernetes upgrades are skipped)
* Correctly unmarshal Kubernetes Components list if the list uses an old format

---------

Signed-off-by: Daniel Weiße <dw@edgeless.systems>
2023-12-15 15:45:52 +01:00

44 lines
1.2 KiB
Python

load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library")
load("@rules_proto//proto:defs.bzl", "proto_library")
load("//bazel/go:go_test.bzl", "go_test")
load("//bazel/proto:rules.bzl", "write_go_proto_srcs")
go_library(
name = "components",
srcs = ["components.go"],
embed = [":components_go_proto"],
importpath = "github.com/edgelesssys/constellation/v2/internal/versions/components",
visibility = ["//:__subpackages__"],
)
proto_library(
name = "components_proto",
srcs = ["components.proto"],
visibility = ["//:__subpackages__"],
)
go_proto_library(
name = "components_go_proto",
importpath = "github.com/edgelesssys/constellation/v2/internal/versions/components",
proto = ":components_proto",
visibility = ["//:__subpackages__"],
)
write_go_proto_srcs(
name = "write_generated_protos",
src = "components.pb.go",
go_proto_library = ":components_go_proto",
visibility = ["//visibility:public"],
)
go_test(
name = "components_test",
srcs = ["components_test.go"],
embed = [":components"],
deps = [
"@com_github_stretchr_testify//assert",
"@com_github_stretchr_testify//require",
],
)