File: BUILD.bazel

package info (click to toggle)
gitlab-agent 16.1.3-2
  • links: PTS, VCS
  • area: contrib
  • in suites: forky, sid, trixie
  • size: 6,324 kB
  • sloc: makefile: 175; sh: 52; ruby: 3
file content (80 lines) | stat: -rw-r--r-- 2,712 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
load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("//build:build.bzl", "go_custom_test")

go_library(
    name = "agent",
    srcs = [
        "doc.go",
        "factory.go",
        "module.go",
        "report.go",
        "reporter.go",
        "scanner.go",
        "scheduler.go",
        "scheduler_worker.go",
        "security_policies_worker.go",
        "worker.go",
    ],
    importpath = "gitlab.com/gitlab-org/cluster-integration/gitlab-agent/v16/internal/module/starboard_vulnerability/agent",
    visibility = ["//:__subpackages__"],
    deps = [
        "//internal/module/modagent",
        "//internal/module/modshared",
        "//internal/module/starboard_vulnerability",
        "//internal/tool/errz",
        "//internal/tool/logz",
        "//internal/tool/retry",
        "//internal/tool/syncz",
        "//pkg/agentcfg",
        "@com_github_robfig_cron_v3//:cron",
        "@com_gitlab_gitlab_org_security_products_analyzers_report_v3//:report",
        "@io_k8s_api//core/v1:core",
        "@io_k8s_apimachinery//pkg/api/errors",
        "@io_k8s_apimachinery//pkg/api/meta",
        "@io_k8s_apimachinery//pkg/api/resource",
        "@io_k8s_apimachinery//pkg/apis/meta/v1:meta",
        "@io_k8s_apimachinery//pkg/util/wait",
        "@io_k8s_client_go//kubernetes",
        "@org_golang_google_protobuf//proto",
        "@org_uber_go_zap//:zap",
    ],
)

go_custom_test(
    name = "agent_test",
    srcs = [
        "factory_test.go",
        "mock_job_test.go",
        "mock_schedule_test.go",
        "module_test.go",
        "report_test.go",
        "reporter_test.go",
        "scanner_test.go",
        "scheduler_test.go",
        "scheduler_worker_test.go",
        "security_policies_worker_test.go",
    ],
    embed = [":agent"],
    deps = [
        "//internal/module/modagent",
        "//internal/module/modshared",
        "//internal/module/starboard_vulnerability",
        "//internal/tool/syncz",
        "//internal/tool/testing/mock_modagent",
        "//internal/tool/testing/testhelpers",
        "//pkg/agentcfg",
        "@com_github_golang_mock//gomock",
        "@com_github_stretchr_testify//assert",
        "@com_github_stretchr_testify//require",
        "@com_gitlab_gitlab_org_security_products_analyzers_report_v3//:report",
        "@io_k8s_api//core/v1:core",
        "@io_k8s_apimachinery//pkg/api/resource",
        "@io_k8s_apimachinery//pkg/apis/meta/v1:meta",
        "@io_k8s_apimachinery//pkg/runtime",
        "@io_k8s_apimachinery//pkg/util/wait",
        "@io_k8s_apimachinery//pkg/watch",
        "@io_k8s_client_go//kubernetes/fake",
        "@io_k8s_client_go//testing",
        "@org_uber_go_zap//zaptest",
    ],
)