load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")

go_library(
    name = "go_default_library",
    srcs = ["main.go"],
    importmap = "sigs.k8s.io/cluster-api-provider-azure/vendor/github.com/openshift/cluster-api/cmd/example-provider",
    importpath = "github.com/openshift/cluster-api/cmd/example-provider",
    visibility = ["//visibility:private"],
    deps = [
        "//vendor/github.com/openshift/cluster-api/pkg/apis:go_default_library",
        "//vendor/github.com/openshift/cluster-api/pkg/apis/cluster/common:go_default_library",
        "//vendor/github.com/openshift/cluster-api/pkg/client/clientset_generated/clientset:go_default_library",
        "//vendor/github.com/openshift/cluster-api/pkg/controller/cluster:go_default_library",
        "//vendor/github.com/openshift/cluster-api/pkg/controller/machine:go_default_library",
        "//vendor/github.com/openshift/cluster-api/pkg/provider/example/actuators/cluster:go_default_library",
        "//vendor/github.com/openshift/cluster-api/pkg/provider/example/actuators/machine:go_default_library",
        "//vendor/k8s.io/klog:go_default_library",
        "//vendor/sigs.k8s.io/controller-runtime/pkg/client/config:go_default_library",
        "//vendor/sigs.k8s.io/controller-runtime/pkg/manager:go_default_library",
        "//vendor/sigs.k8s.io/controller-runtime/pkg/runtime/signals:go_default_library",
    ],
)

go_binary(
    name = "example-provider",
    embed = [":go_default_library"],
    visibility = ["//visibility:public"],
)
