...
1load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
2
3go_library(
4 name = "decoder",
5 srcs = ["decoder.go"],
6 importpath = "edge-infra.dev/pkg/k8s/decoder",
7 visibility = ["//visibility:public"],
8 deps = [
9 "@io_k8s_apimachinery//pkg/apis/meta/v1/unstructured",
10 "@io_k8s_apimachinery//pkg/runtime",
11 "@io_k8s_apimachinery//pkg/util/yaml",
12 ],
13)
14
15go_test(
16 name = "decoder_test",
17 srcs = ["decoder_test.go"],
18 data = glob(["testdata/**"]),
19 embed = [":decoder"],
20 embedsrcs = [
21 "testdata/manifests.yaml",
22 "testdata/manifests_empty_item.yaml",
23 ],
24)
View as plain text