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