File: BUILD.bazel

package info (click to toggle)
gitlab-agent 16.11.5-1
  • links: PTS, VCS
  • area: contrib
  • in suites: experimental
  • size: 7,072 kB
  • sloc: makefile: 193; sh: 55; ruby: 3
file content (92 lines) | stat: -rw-r--r-- 3,413 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("//build:build.bzl", "go_custom_test")

go_library(
    name = "server",
    srcs = [
        "defaulting.go",
        "factory.go",
        "module.go",
        "proxy.go",
    ],
    importpath = "gitlab.com/gitlab-org/cluster-integration/gitlab-agent/v16/internal/module/kubernetes_api/server",
    visibility = ["//:__subpackages__"],
    deps = [
        "//internal/api",
        "//internal/gitlab",
        "//internal/gitlab/api",
        "//internal/module/event_tracker",
        "//internal/module/kubernetes_api",
        "//internal/module/kubernetes_api/rpc",
        "//internal/module/modserver",
        "//internal/module/modshared",
        "//internal/module/usage_metrics",
        "//internal/tool/cache",
        "//internal/tool/grpctool",
        "//internal/tool/httpz",
        "//internal/tool/logz",
        "//internal/tool/memz",
        "//internal/tool/nettool",
        "//internal/tool/prototool",
        "//internal/tool/redistool",
        "//internal/tool/tlstool",
        "//pkg/agentcfg",
        "//pkg/kascfg",
        "@io_k8s_apimachinery//pkg/apis/meta/v1:meta",
        "@io_k8s_apimachinery//pkg/runtime",
        "@io_k8s_apimachinery//pkg/runtime/serializer",
        "@io_k8s_apiserver//pkg/endpoints/handlers/negotiation",
        "@io_opentelemetry_go_contrib_instrumentation_net_http_otelhttp//:otelhttp",
        "@io_opentelemetry_go_otel//propagation",
        "@io_opentelemetry_go_otel_metric//:metric",
        "@io_opentelemetry_go_otel_trace//:trace",
        "@org_golang_google_protobuf//proto",
        "@org_uber_go_zap//:zap",
    ],
)

go_custom_test(
    name = "server_test",
    srcs = [
        "factory_test.go",
        "module_test.go",
        "proxy_test.go",
    ],
    embed = [":server"],
    deps = [
        "//internal/gitlab/api",
        "//internal/module/kubernetes_api",
        "//internal/module/kubernetes_api/rpc",
        "//internal/module/modserver",
        "//internal/tool/cache",
        "//internal/tool/grpctool",
        "//internal/tool/httpz",
        "//internal/tool/prototool",
        "//internal/tool/testing/matcher",
        "//internal/tool/testing/mock_cache",
        "//internal/tool/testing/mock_event_tracker",
        "//internal/tool/testing/mock_gitlab",
        "//internal/tool/testing/mock_kubernetes_api",
        "//internal/tool/testing/mock_modserver",
        "//internal/tool/testing/mock_usage_metrics",
        "//internal/tool/testing/testhelpers",
        "//pkg/agentcfg",
        "@com_github_google_go_cmp//cmp",
        "@com_github_google_go_cmp//cmp/cmpopts",
        "@com_github_stretchr_testify//assert",
        "@com_github_stretchr_testify//require",
        "@io_k8s_apimachinery//pkg/apis/meta/v1:meta",
        "@io_k8s_apimachinery//pkg/runtime",
        "@io_k8s_apimachinery//pkg/runtime/schema",
        "@io_k8s_apimachinery//pkg/runtime/serializer",
        "@io_k8s_apimachinery//pkg/util/wait",
        "@io_opentelemetry_go_otel//propagation",
        "@io_opentelemetry_go_otel_sdk//trace",
        "@io_opentelemetry_go_otel_sdk//trace/tracetest",
        "@org_golang_google_protobuf//encoding/protojson",
        "@org_golang_google_protobuf//proto",
        "@org_golang_google_protobuf//types/known/anypb",
        "@org_uber_go_mock//gomock",
        "@org_uber_go_zap//zaptest",
    ],
)