mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-27 00:19:36 -05:00
837b24bf54
* versions: generate k8s image patches (incl etcd)
31 lines
951 B
Python
31 lines
951 B
Python
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
|
|
load("//bazel/go:go_test.bzl", "go_test")
|
|
|
|
go_library(
|
|
name = "hash-generator_lib",
|
|
srcs = ["generate.go"],
|
|
importpath = "github.com/edgelesssys/constellation/v2/internal/versions/hash-generator",
|
|
visibility = ["//visibility:private"],
|
|
deps = [
|
|
"@com_github_regclient_regclient//:regclient",
|
|
"@com_github_regclient_regclient//types/ref",
|
|
"@com_github_vincent_petithory_dataurl//:dataurl",
|
|
"@io_k8s_kubernetes//cmd/kubeadm/app/apis/kubeadm",
|
|
"@io_k8s_kubernetes//cmd/kubeadm/app/images",
|
|
"@org_golang_x_tools//go/ast/astutil",
|
|
],
|
|
)
|
|
|
|
go_binary(
|
|
name = "hash-generator",
|
|
embed = [":hash-generator_lib"],
|
|
visibility = ["//:__subpackages__"],
|
|
)
|
|
|
|
go_test(
|
|
name = "hash-generator_test",
|
|
srcs = ["generate_test.go"],
|
|
embed = [":hash-generator_lib"],
|
|
deps = ["@org_uber_go_goleak//:goleak"],
|
|
)
|