load("@io_bazel_rules_go//go:def.bzl", "go_library")

go_library(
    name = "go_default_library",
    srcs = ["globals.go"],
    importpath = "github.com/jetstack/cert-manager/test/e2e/framework/addon",
    tags = ["manual"],
    visibility = ["//visibility:public"],
    deps = [
        "//test/e2e/framework/addon/base:go_default_library",
        "//test/e2e/framework/config:go_default_library",
        "//test/e2e/framework/log:go_default_library",
        "@io_k8s_apimachinery//pkg/util/errors:go_default_library",
    ],
)

filegroup(
    name = "package-srcs",
    srcs = glob(["**"]),
    tags = ["automanaged"],
    visibility = ["//visibility:private"],
)

filegroup(
    name = "all-srcs",
    srcs = [
        ":package-srcs",
        "//test/e2e/framework/addon/base:all-srcs",
        "//test/e2e/framework/addon/chart:all-srcs",
        "//test/e2e/framework/addon/vault:all-srcs",
    ],
    tags = ["automanaged"],
    visibility = ["//visibility:public"],
)
