load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") go_test( name = "info_test", srcs = [ "config_test.go", "integration_test.go", "secret_test.go", "watch_test.go", ], data = [ "//hack/tools:etcd", "//hack/tools:kube-apiserver", "//hack/tools:kubectl", "//test:config_json", ], tags = [ "integration", "needs-f2-refactor", ], visibility = ["//visibility:public"], deps = [ ":info", "//config/components/info", "//pkg/edge/info/fake", "//pkg/k8s/rbac", "//pkg/k8s/runtime/sap", "//pkg/k8s/unstructured", "//pkg/lib/logging", "//test/f2", "//test/f2/x/ktest", "@com_github_stretchr_testify//assert", "@com_github_stretchr_testify//require", "@io_k8s_api//core/v1:core", "@io_k8s_apimachinery//pkg/api/errors", "@io_k8s_apimachinery//pkg/apis/meta/v1:meta", "@io_k8s_apimachinery//pkg/runtime", "@io_k8s_apimachinery//pkg/types", "@io_k8s_apimachinery//pkg/util/runtime", "@io_k8s_client_go//kubernetes/scheme", "@io_k8s_client_go//rest", "@io_k8s_sigs_controller_runtime//pkg/client", "@io_k8s_sigs_controller_runtime//pkg/client/fake", ], ) go_library( name = "info", srcs = [ "config.go", "constants.go", "secret.go", "watch.go", ], importpath = "edge-infra.dev/pkg/edge/info", visibility = ["//visibility:public"], deps = [ "//pkg/edge/constants/api/fleet", "@com_github_go_logr_logr//:logr", "@io_k8s_api//core/v1:core", "@io_k8s_apimachinery//pkg/apis/meta/v1:meta", "@io_k8s_apimachinery//pkg/fields", "@io_k8s_apimachinery//pkg/watch", "@io_k8s_sigs_controller_runtime//pkg/client", ], )