load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") go_library( name = "manifest", srcs = ["manifest.go"], importpath = "edge-infra.dev/pkg/sds/lib/k8s/manifest", visibility = ["//visibility:public"], deps = [ "//pkg/k8s/decoder", "//pkg/k8s/unstructured", "@com_github_spf13_afero//:afero", "@io_k8s_apimachinery//pkg/runtime", "@io_k8s_sigs_yaml//:yaml", ], ) go_test( name = "manifest_test", srcs = ["manifest_test.go"], data = glob(["testdata/**"]), embed = [":manifest"], embedsrcs = [ "testdata/test-pod.yaml", "testdata/embed/updated-test-pod.yaml", ], deps = [ "@com_github_spf13_afero//:afero", "@com_github_stretchr_testify//assert", "@com_github_stretchr_testify//require", "@io_k8s_api//core/v1:core", "@io_k8s_apimachinery//pkg/apis/meta/v1:meta", "@io_k8s_apimachinery//pkg/runtime", ], )