4
0
Fork 2
mirror of https://gerrit.hackerspace.pl/hscloud synced 2025-01-24 17:33:54 +00:00
hscloud/cluster/prodaccess/BUILD.bazel
radex 31a32a816c cluster/prodaccess: use the correct cluster CA cert
Adds //cluster/k1/certs go package, and changes prodaccess to look up the correct one based on the -cluster flag. This should complete the transition of prodaccess to multicluster.

Change-Id: If65fab8f898a48ec16e6de7eeb02fd0aacee30b4
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/2117
Reviewed-by: q3k <q3k@hackerspace.pl>
2025-01-17 22:35:29 +00:00

31 lines
819 B
Python

load("@rules_go//go:def.bzl", "go_binary", "go_library")
go_library(
name = "prodaccess_lib",
srcs = [
"hspki.go",
"kubernetes.go",
"prodaccess.go",
"certs.go",
],
importpath = "code.hackerspace.pl/hscloud/cluster/prodaccess",
visibility = ["//visibility:private"],
deps = [
"//cluster/certs",
"//cluster/clustercfg/clusters",
"//cluster/k1/certs",
"//cluster/prodvider/proto",
"//go/pki",
"//go/workspace",
"@com_github_golang_glog//:glog",
"@org_golang_google_grpc//:go_default_library",
"@org_golang_google_grpc//credentials",
"@org_golang_x_term//:term",
],
)
go_binary(
name = "prodaccess",
embed = [":prodaccess_lib"],
visibility = ["//visibility:public"],
)