...
1load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
2
3go_library(
4 name = "manifest",
5 srcs = ["manifest.go"],
6 importpath = "edge-infra.dev/pkg/sds/lib/k8s/manifest",
7 visibility = ["//visibility:public"],
8 deps = [
9 "//pkg/k8s/decoder",
10 "//pkg/k8s/unstructured",
11 "@com_github_spf13_afero//:afero",
12 "@io_k8s_apimachinery//pkg/runtime",
13 "@io_k8s_sigs_yaml//:yaml",
14 ],
15)
16
17go_test(
18 name = "manifest_test",
19 srcs = ["manifest_test.go"],
20 data = glob(["testdata/**"]),
21 embed = [":manifest"],
22 embedsrcs = [
23 "testdata/test-pod.yaml",
24 "testdata/embed/updated-test-pod.yaml",
25 ],
26 deps = [
27 "@com_github_spf13_afero//:afero",
28 "@com_github_stretchr_testify//assert",
29 "@com_github_stretchr_testify//require",
30 "@io_k8s_api//core/v1:core",
31 "@io_k8s_apimachinery//pkg/apis/meta/v1:meta",
32 "@io_k8s_apimachinery//pkg/runtime",
33 ],
34)
View as plain text