load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") go_library( name = "bsl-reconciler", srcs = [ "bsl_reconciler.go", "config.go", "constants.go", "logger.go", "organizations.go", "types.go", "utils.go", ], importpath = "edge-infra.dev/pkg/edge/bsl-reconciler", visibility = ["//visibility:public"], deps = [ "//pkg/edge/api/apierror/bsl", "//pkg/edge/api/bsl/types", "//pkg/edge/api/graph/model", "//pkg/edge/api/middleware", "//pkg/edge/api/services", "//pkg/edge/api/types", "//pkg/edge/bsl", "//pkg/edge/bsl-reconciler/metrics", "//pkg/edge/constants", "//pkg/lib/gcp/cloudsql", "//pkg/lib/gcp/secretmanager", "//pkg/lib/gcp/utils", "//pkg/lib/logging", "//pkg/lib/runtime/manager", "//pkg/lib/runtime/metrics", "//pkg/x/tonic", "@com_github_gin_contrib_requestid//:requestid", "@com_github_gin_gonic_gin//:gin", "@com_github_go_logr_logr//:logr", "@com_github_go_resty_resty_v2//:resty", "@com_github_peterbourgon_ff_v3//:ff", "@com_github_sethvargo_go_password//password", ], ) go_test( name = "bsl-reconciler_test", srcs = [ "bsl_reconciler_test.go", "utils_test.go", ], data = [ "//hack/tools:postgres.txz", ], embed = [":bsl-reconciler"], tags = ["needs-f2-refactor"], deps = [ "//pkg/edge/api/bsl/types", "//pkg/edge/api/graph/model", "//pkg/edge/api/mocks", "//pkg/edge/api/testutils/seededpostgres", "//pkg/edge/api/types", "//pkg/edge/bsl", "//pkg/edge/constants", "//pkg/lib/gcp/secretmanager", "//pkg/lib/logging", "@com_github_data_dog_go_sqlmock//:go-sqlmock", "@com_github_golang_mock//gomock", "@com_github_stretchr_testify//assert", "@com_google_cloud_go_secretmanager//apiv1/secretmanagerpb", "@io_k8s_client_go//plugin/pkg/client/auth", ], )