load("@io_bazel_rules_go//go:def.bzl", "go_library") go_library( name = "daemonsetdnstest", srcs = [ "daemonsetdnstest.go", "doc.go", ], embedsrcs = [ "testdata/README.md", "testdata/local_manifests.yaml", ], importpath = "edge-infra.dev/pkg/sds/k8s/daemonsetdns/daemonsetdnstest", visibility = ["//visibility:public"], deps = [ "//pkg/k8s/decoder", "//pkg/k8s/runtime/sap", "//pkg/k8s/unstructured", "//test/f2", "//test/f2/x/ktest", "@io_k8s_sigs_controller_runtime//pkg/client", "@io_k8s_sigs_kustomize_kyaml//kio", ], ) genrule( name = "copy_manifests", srcs = [ "//config/pallets/sds/daemonsetdns/local", ], outs = ["testdata/local_manifests.yaml"], cmd = "mkdir -p $(RULEDIR)/testdata/ && cp $(SRCS) $(RULEDIR)/testdata/", )