...
1"""fetches coredns manifests"""
2
3load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
4
5def fetch_coredns_manifests():
6 """Returns coredns manifests we rely on"""
7
8 http_archive(
9 name = "coredns_manifests",
10 build_file_content = """
11package(default_visibility = ["//visibility:public"])
12load("@rules_pkg//pkg:mappings.bzl", "pkg_files", "strip_prefix")
13pkg_files(
14 name = "file",
15 strip_prefix = "cluster/addons/dns/coredns",
16 srcs = glob(["cluster/addons/dns/coredns/coredns.yaml.sed"]),
17)
18 """,
19 strip_prefix = "kubernetes-master",
20 urls = ["https://github.com/kubernetes/kubernetes/archive/refs/heads/master.tar.gz"],
21 )
View as plain text