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

go_library(
    name = "go_default_library",
    srcs = [
        "applycrd.go",
        "resource.go",
        "settings.go",
    ],
    importpath = "github.com/jetstack/cert-manager/cmd/ctl/pkg/install/helm",
    visibility = ["//visibility:public"],
    deps = [
        "@com_github_spf13_pflag//:go_default_library",
        "@io_k8s_apimachinery//pkg/api/errors:go_default_library",
        "@io_k8s_cli_runtime//pkg/resource:go_default_library",
        "@sh_helm_helm_v3//pkg/action:go_default_library",
        "@sh_helm_helm_v3//pkg/cli:go_default_library",
        "@sh_helm_helm_v3//pkg/kube:go_default_library",
    ],
)

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

filegroup(
    name = "all-srcs",
    srcs = [":package-srcs"],
    tags = ["automanaged"],
    visibility = ["//visibility:public"],
)
