| Lorenz Brun | fc5dbc6 | 2020-05-28 12:18:07 +0200 | [diff] [blame] | 1 | load("@io_bazel_rules_go//go:def.bzl", "go_library") |
| 2 | |
| 3 | go_library( |
| Lorenz Brun | d13c1c6 | 2022-03-30 19:58:58 +0200 | [diff] [blame] | 4 | name = "launch", |
| Serge Bazanski | 05f813b | 2023-03-16 17:58:39 +0100 | [diff] [blame] | 5 | srcs = [ |
| Tim Windelschmidt | 9f21f53 | 2024-05-07 15:14:20 +0200 | [diff] [blame] | 6 | "cluster.go", |
| 7 | "insecure_key.go", |
| Tim Windelschmidt | 82e6af7 | 2024-07-23 00:05:42 +0000 | [diff] [blame] | 8 | "launch.go", |
| Tim Windelschmidt | 9f21f53 | 2024-05-07 15:14:20 +0200 | [diff] [blame] | 9 | "metroctl.go", |
| 10 | "prefixed_stdio.go", |
| 11 | "swtpm.go", |
| Serge Bazanski | 05f813b | 2023-03-16 17:58:39 +0100 | [diff] [blame] | 12 | ], |
| Tim Windelschmidt | 244b567 | 2024-02-06 10:18:56 +0100 | [diff] [blame] | 13 | data = [ |
| Tim Windelschmidt | 6120f38 | 2024-09-03 16:31:10 +0200 | [diff] [blame] | 14 | "//metropolis/cli/metroctl:metroctl_lite", |
| Tim Windelschmidt | 9f21f53 | 2024-05-07 15:14:20 +0200 | [diff] [blame] | 15 | "//metropolis/node:image", |
| 16 | "//metropolis/test/nanoswitch:initramfs", |
| 17 | "//metropolis/test/swtpm/certtool", |
| 18 | "//metropolis/test/swtpm/swtpm_cert", |
| 19 | "//osbase/test/ktest:linux-testing", |
| Tim Windelschmidt | 82e6af7 | 2024-07-23 00:05:42 +0000 | [diff] [blame] | 20 | "//third_party/edk2:OVMF_CODE.fd", |
| 21 | "//third_party/edk2:OVMF_VARS.fd", |
| Tim Windelschmidt | 9f21f53 | 2024-05-07 15:14:20 +0200 | [diff] [blame] | 22 | "@swtpm", |
| 23 | "@swtpm//:swtpm_localca", |
| 24 | "@swtpm//:swtpm_setup", |
| Tim Windelschmidt | 244b567 | 2024-02-06 10:18:56 +0100 | [diff] [blame] | 25 | ], |
| Serge Bazanski | 31370b0 | 2021-01-07 16:31:14 +0100 | [diff] [blame] | 26 | importpath = "source.monogon.dev/metropolis/test/launch", |
| Tim Windelschmidt | 9f21f53 | 2024-05-07 15:14:20 +0200 | [diff] [blame] | 27 | visibility = ["//visibility:public"], |
| Tim Windelschmidt | 82e6af7 | 2024-07-23 00:05:42 +0000 | [diff] [blame] | 28 | x_defs = { |
| 29 | "xSwtpmPath": "$(rlocationpath @swtpm )", |
| 30 | "xSwtpmSetupPath": "$(rlocationpath @swtpm//:swtpm_setup )", |
| 31 | "xSwtpmLocalCAPath": "$(rlocationpath @swtpm//:swtpm_localca )", |
| 32 | "xSwtpmCertPath": "$(rlocationpath //metropolis/test/swtpm/swtpm_cert )", |
| 33 | "xCerttoolPath": "$(rlocationpath //metropolis/test/swtpm/certtool )", |
| Tim Windelschmidt | 6120f38 | 2024-09-03 16:31:10 +0200 | [diff] [blame] | 34 | "xMetroctlPath": "$(rlocationpath //metropolis/cli/metroctl:metroctl_lite )", |
| Tim Windelschmidt | 82e6af7 | 2024-07-23 00:05:42 +0000 | [diff] [blame] | 35 | "xOvmfVarsPath": "$(rlocationpath //third_party/edk2:OVMF_VARS.fd )", |
| 36 | "xOvmfCodePath": "$(rlocationpath //third_party/edk2:OVMF_CODE.fd )", |
| 37 | "xKernelPath": "$(rlocationpath //osbase/test/ktest:linux-testing )", |
| 38 | "xInitramfsPath": "$(rlocationpath //metropolis/test/nanoswitch:initramfs )", |
| 39 | "xNodeImagePath": "$(rlocationpath //metropolis/node:image )", |
| 40 | }, |
| Lorenz Brun | fc5dbc6 | 2020-05-28 12:18:07 +0200 | [diff] [blame] | 41 | deps = [ |
| Serge Bazanski | ca8d951 | 2024-09-12 14:20:57 +0200 | [diff] [blame] | 42 | "//go/logging", |
| Tim Windelschmidt | 9f21f53 | 2024-05-07 15:14:20 +0200 | [diff] [blame] | 43 | "//go/qcow2", |
| 44 | "//metropolis/cli/metroctl/core", |
| 45 | "//metropolis/node", |
| 46 | "//metropolis/node/core/curator/proto/api", |
| Tim Windelschmidt | 9f21f53 | 2024-05-07 15:14:20 +0200 | [diff] [blame] | 47 | "//metropolis/node/core/rpc", |
| 48 | "//metropolis/node/core/rpc/resolver", |
| 49 | "//metropolis/proto/api", |
| 50 | "//metropolis/proto/common", |
| 51 | "//metropolis/test/localregistry", |
| 52 | "//osbase/logbuffer", |
| 53 | "//osbase/test/launch", |
| 54 | "@com_github_cenkalti_backoff_v4//:backoff", |
| 55 | "@com_github_kballard_go_shellquote//:go-shellquote", |
| Tim Windelschmidt | 244b567 | 2024-02-06 10:18:56 +0100 | [diff] [blame] | 56 | "@io_bazel_rules_go//go/runfiles:go_default_library", |
| Tim Windelschmidt | 9f21f53 | 2024-05-07 15:14:20 +0200 | [diff] [blame] | 57 | "@io_k8s_client_go//kubernetes", |
| 58 | "@io_k8s_client_go//rest", |
| Jan Schär | d1a8b64 | 2024-12-03 17:40:41 +0100 | [diff] [blame^] | 59 | "@io_k8s_utils//ptr", |
| Tim Windelschmidt | 3325b4b | 2024-07-15 19:19:49 +0200 | [diff] [blame] | 60 | "@org_golang_google_grpc//:grpc", |
| Tim Windelschmidt | 9f21f53 | 2024-05-07 15:14:20 +0200 | [diff] [blame] | 61 | "@org_golang_google_grpc//codes", |
| 62 | "@org_golang_google_grpc//status", |
| 63 | "@org_golang_google_protobuf//proto", |
| 64 | "@org_golang_x_net//proxy", |
| Lorenz Brun | d13c1c6 | 2022-03-30 19:58:58 +0200 | [diff] [blame] | 65 | "@org_golang_x_sys//unix", |
| Tim Windelschmidt | 9f21f53 | 2024-05-07 15:14:20 +0200 | [diff] [blame] | 66 | "@org_uber_go_multierr//:multierr", |
| Lorenz Brun | fc5dbc6 | 2020-05-28 12:18:07 +0200 | [diff] [blame] | 67 | ], |
| 68 | ) |