...
1load("@io_bazel_rules_go//go:def.bzl", "go_test")
2
3go_test(
4 name = "kustomization_test",
5 srcs = ["kustomization_test.go"],
6 data = glob(["testdata/**"]) + [
7 "//hack/tools:etcd",
8 "//hack/tools:kube-apiserver",
9 "//hack/tools:kubectl",
10 ],
11 embedsrcs = [
12 "testdata/kustomization_manifests.yaml",
13 ],
14 tags = [
15 "f2-example", # dont use outside f2/examples, stops deps test from failing
16 "integration",
17 ],
18 visibility = ["//visibility:public"],
19 deps = [
20 "//pkg/k8s/decoder",
21 "//pkg/k8s/unstructured",
22 "//test/f2",
23 "//test/f2/integration",
24 "//test/f2/x/ktest",
25 "//test/f2/x/ktest/envtest",
26 "@io_k8s_sigs_kustomize_api//filters/namespace",
27 "@io_k8s_sigs_kustomize_api//types",
28 "@io_k8s_sigs_kustomize_kyaml//kio",
29 "@tools_gotest_v3//assert",
30 ],
31)
32
33genrule(
34 name = "kustomization_local_copy",
35 srcs = [
36 "//test/f2/examples/embed/kustomization/container:kustomization",
37 ],
38 outs = [
39 "testdata/kustomization_manifests.yaml",
40 ],
41 cmd = "cp $(SRCS) $(RULEDIR)/testdata/",
42)
View as plain text