load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") go_library( name = "option", srcs = ["config.go"], importpath = "edge-infra.dev/pkg/edge/ctlfish/option", visibility = ["//visibility:public"], deps = [ "//pkg/edge/api/graph/mapper", "//pkg/edge/info", "//pkg/lib/logging", "@com_github_spf13_viper//:viper", "@io_k8s_apimachinery//pkg/apis/meta/v1:meta", "@io_k8s_apimachinery//pkg/runtime/schema", "@io_k8s_client_go//dynamic", ], ) go_test( name = "option_test", srcs = ["config_test.go"], data = glob(["testdata/**"]), embed = [":option"], importpath = "edge-infra.dev/pkg/edge/ctlfish/option", deps = [ "//pkg/lib/logging", "@com_github_stretchr_testify//assert", "@io_k8s_apimachinery//pkg/apis/meta/v1:meta", "@io_k8s_apimachinery//pkg/apis/meta/v1/unstructured", "@io_k8s_apimachinery//pkg/runtime", "@io_k8s_apimachinery//pkg/runtime/schema", "@io_k8s_client_go//dynamic/fake", ], )