load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") go_library( name = "decoder", srcs = ["decoder.go"], importpath = "edge-infra.dev/pkg/k8s/decoder", visibility = ["//visibility:public"], deps = [ "@io_k8s_apimachinery//pkg/apis/meta/v1/unstructured", "@io_k8s_apimachinery//pkg/runtime", "@io_k8s_apimachinery//pkg/util/yaml", ], ) go_test( name = "decoder_test", srcs = ["decoder_test.go"], data = glob(["testdata/**"]), embed = [":decoder"], embedsrcs = [ "testdata/manifests.yaml", "testdata/manifests_empty_item.yaml", ], )