2023-03-09 15:23:42 +01:00
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
2024-06-25 10:11:57 +02:00
|
|
|
load("//bazel/go:go_test.bzl", "go_test")
|
2023-03-09 15:23:42 +01:00
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "upgrade",
|
|
|
|
srcs = ["upgrade.go"],
|
2024-01-08 13:19:38 +01:00
|
|
|
importpath = "github.com/edgelesssys/constellation/v2/operators/constellation-node-operator/internal/upgrade",
|
2023-03-09 15:23:42 +01:00
|
|
|
visibility = ["//operators/constellation-node-operator:__subpackages__"],
|
|
|
|
deps = [
|
|
|
|
"//internal/constants",
|
2023-12-14 16:02:09 +01:00
|
|
|
"//internal/versions/components",
|
2023-03-09 15:23:42 +01:00
|
|
|
"//upgrade-agent/upgradeproto",
|
2024-05-21 17:56:37 +02:00
|
|
|
"@org_golang_google_grpc//:grpc",
|
2023-03-09 15:23:42 +01:00
|
|
|
"@org_golang_google_grpc//credentials/insecure",
|
|
|
|
],
|
|
|
|
)
|
2024-06-25 10:11:57 +02:00
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "upgrade_test",
|
|
|
|
srcs = ["upgrade_test.go"],
|
|
|
|
embed = [":upgrade"],
|
|
|
|
deps = [
|
|
|
|
"//internal/versions/components",
|
|
|
|
"//upgrade-agent/upgradeproto",
|
|
|
|
"@com_github_stretchr_testify//require",
|
|
|
|
"@org_golang_google_grpc//:grpc",
|
|
|
|
],
|
|
|
|
)
|