load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") go_library( name = "controllers", srcs = [ "config.go", "interface.go", "signer.go", ], importpath = "edge-infra.dev/pkg/edge/edge-issuer/controllers", visibility = ["//visibility:public"], deps = [ "//pkg/edge/edge-issuer/api/v1alpha1", "//pkg/lib/gcp/cloudsql", "//pkg/lib/gcp/secretmanager", "@com_github_cert_manager_cert_manager//pkg/util/pki", "@com_github_cert_manager_issuer_lib//api/v1alpha1", "@com_github_cert_manager_issuer_lib//controllers", "@com_github_cert_manager_issuer_lib//controllers/signer", "@com_github_peterbourgon_ff_v3//:ff", "@io_k8s_sigs_controller_runtime//:controller-runtime", "@io_k8s_sigs_controller_runtime//pkg/client", "@org_golang_google_api//option", ], ) go_test( name = "controllers_test", srcs = ["signer_test.go"], embed = [":controllers"], tags = [ "integration", "needs-f2-refactor", ], visibility = ["//visibility:public"], deps = [ "//pkg/edge/api/sql/plugin", "//pkg/edge/api/sql/utils", "//pkg/edge/edge-issuer/api/v1alpha1", "//test/f2", "//test/f2/x/postgres", "@com_github_cert_manager_cert_manager//pkg/apis/certmanager/v1:certmanager", "@com_github_stretchr_testify//mock", "@com_github_stretchr_testify//require", "@com_google_cloud_go_secretmanager//apiv1/secretmanagerpb", "@io_k8s_apimachinery//pkg/apis/meta/v1:meta", "@org_golang_google_api//option", ], )