"""fetches coredns manifests""" load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") def fetch_coredns_manifests(): """Returns coredns manifests we rely on""" http_archive( name = "coredns_manifests", build_file_content = """ package(default_visibility = ["//visibility:public"]) load("@rules_pkg//pkg:mappings.bzl", "pkg_files", "strip_prefix") pkg_files( name = "file", strip_prefix = "cluster/addons/dns/coredns", srcs = glob(["cluster/addons/dns/coredns/coredns.yaml.sed"]), ) """, strip_prefix = "kubernetes-master", urls = ["https://github.com/kubernetes/kubernetes/archive/refs/heads/master.tar.gz"], )