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

go_library(
    name = "go_default_library",
    srcs = [
        "validate_cluster_api_objects.go",
        "validate_pods.go",
    ],
    importpath = "github.com/openshift/cluster-api/cmd/clusterctl/validation",
    visibility = ["//visibility:public"],
    deps = [
        "//pkg/apis/cluster/common:go_default_library",
        "//pkg/apis/cluster/v1alpha1:go_default_library",
        "//pkg/controller/noderefutil:go_default_library",
        "//vendor/github.com/pkg/errors:go_default_library",
        "//vendor/k8s.io/api/core/v1:go_default_library",
        "//vendor/k8s.io/apimachinery/pkg/types:go_default_library",
        "//vendor/sigs.k8s.io/controller-runtime/pkg/client:go_default_library",
    ],
)

go_test(
    name = "go_default_test",
    srcs = [
        "validate_cluster_api_objects_suite_test.go",
        "validate_cluster_api_objects_test.go",
        "validate_pods_test.go",
    ],
    data = glob(["testdata/**"]),
    embed = [":go_default_library"],
    deps = [
        "//pkg/apis:go_default_library",
        "//pkg/apis/cluster/common:go_default_library",
        "//pkg/apis/cluster/v1alpha1:go_default_library",
        "//pkg/apis/cluster/v1alpha1/testutil:go_default_library",
        "//vendor/k8s.io/api/core/v1:go_default_library",
        "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
        "//vendor/k8s.io/apimachinery/pkg/types:go_default_library",
        "//vendor/k8s.io/client-go/kubernetes/scheme:go_default_library",
        "//vendor/k8s.io/client-go/rest:go_default_library",
        "//vendor/sigs.k8s.io/controller-runtime/pkg/client:go_default_library",
        "//vendor/sigs.k8s.io/controller-runtime/pkg/envtest:go_default_library",
        "//vendor/sigs.k8s.io/controller-runtime/pkg/manager:go_default_library",
    ],
)
