package(default_visibility = ["//visibility:public"])

load("@io_k8s_repo_infra//defs:pkg.bzl", "pkg_tar")

pkg_tar(
    name = "manifests",
    mode = "0644",
    package_dir = "deploy",
    deps = [
        "//deploy/charts/cert-manager:release-tar",
        "//deploy/manifests",
    ],
)

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

filegroup(
    name = "all-srcs",
    srcs = [
        ":package-srcs",
        "//deploy/charts/cert-manager:all-srcs",
        "//deploy/crds:all-srcs",
        "//deploy/manifests:all-srcs",
    ],
    tags = ["automanaged"],
    visibility = ["//visibility:public"],
)
