load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") go_library( name = "swapcfg", srcs = ["swapcfg.go"], importpath = "edge-infra.dev/pkg/sds/ien/k8s/controllers/nodeagent/plugins/swapcfg", visibility = ["//visibility:public"], deps = [ "//pkg/k8s/runtime/controller/reconcile", "//pkg/sds/ien/k8s/apis/v1:apis", "//pkg/sds/ien/k8s/controllers/nodeagent/config", "@in_gopkg_yaml_v2//:yaml_v2", ], ) go_test( name = "swapcfg_test", srcs = ["swapcfg_test.go"], data = glob(["testdata/**"]), embed = [":swapcfg"], tags = [ "unit", ], visibility = ["//visibility:public"], deps = [ "//pkg/sds/ien/k8s/apis/v1:apis", "//pkg/sds/ien/k8s/controllers/nodeagent/config", "//test/f2", "@com_github_stretchr_testify//assert", "@com_github_stretchr_testify//require", "@io_k8s_apimachinery//pkg/apis/meta/v1:meta", "@tools_gotest_v3//fs", ], )