mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
a1f67d0884
* 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>
44 lines
1.2 KiB
Python
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",
|
|
],
|
|
)
|