mirror of
https://github.com/kubernetes/sample-controller.git
synced 2025-01-19 16:12:52 +08:00
6b0f73bee0
Kubernetes-commit: ef56a8d6bb3800ab7803713eafc4191e8202ad6e
64 lines
2.9 KiB
Python
64 lines
2.9 KiB
Python
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
|
|
|
|
go_library(
|
|
name = "go_default_library",
|
|
srcs = [
|
|
"controller.go",
|
|
"main.go",
|
|
],
|
|
importpath = "k8s.io/sample-controller",
|
|
visibility = ["//visibility:private"],
|
|
deps = [
|
|
"//vendor/github.com/golang/glog:go_default_library",
|
|
"//vendor/k8s.io/api/apps/v1:go_default_library",
|
|
"//vendor/k8s.io/api/core/v1:go_default_library",
|
|
"//vendor/k8s.io/apimachinery/pkg/api/errors:go_default_library",
|
|
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
|
|
"//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library",
|
|
"//vendor/k8s.io/apimachinery/pkg/util/runtime:go_default_library",
|
|
"//vendor/k8s.io/apimachinery/pkg/util/wait:go_default_library",
|
|
"//vendor/k8s.io/client-go/informers:go_default_library",
|
|
"//vendor/k8s.io/client-go/kubernetes:go_default_library",
|
|
"//vendor/k8s.io/client-go/kubernetes/scheme:go_default_library",
|
|
"//vendor/k8s.io/client-go/kubernetes/typed/core/v1:go_default_library",
|
|
"//vendor/k8s.io/client-go/listers/apps/v1:go_default_library",
|
|
"//vendor/k8s.io/client-go/tools/cache:go_default_library",
|
|
"//vendor/k8s.io/client-go/tools/clientcmd:go_default_library",
|
|
"//vendor/k8s.io/client-go/tools/record:go_default_library",
|
|
"//vendor/k8s.io/client-go/util/workqueue:go_default_library",
|
|
"//vendor/k8s.io/sample-controller/pkg/apis/samplecontroller/v1alpha1:go_default_library",
|
|
"//vendor/k8s.io/sample-controller/pkg/client/clientset/versioned:go_default_library",
|
|
"//vendor/k8s.io/sample-controller/pkg/client/clientset/versioned/scheme:go_default_library",
|
|
"//vendor/k8s.io/sample-controller/pkg/client/informers/externalversions:go_default_library",
|
|
"//vendor/k8s.io/sample-controller/pkg/client/listers/samplecontroller/v1alpha1:go_default_library",
|
|
"//vendor/k8s.io/sample-controller/pkg/signals:go_default_library",
|
|
],
|
|
)
|
|
|
|
go_binary(
|
|
name = "sample-controller",
|
|
embed = [":go_default_library"],
|
|
visibility = ["//visibility:public"],
|
|
)
|
|
|
|
filegroup(
|
|
name = "package-srcs",
|
|
srcs = glob(["**"]),
|
|
tags = ["automanaged"],
|
|
visibility = ["//visibility:private"],
|
|
)
|
|
|
|
filegroup(
|
|
name = "all-srcs",
|
|
srcs = [
|
|
":package-srcs",
|
|
"//staging/src/k8s.io/sample-controller/pkg/apis/samplecontroller:all-srcs",
|
|
"//staging/src/k8s.io/sample-controller/pkg/client/clientset/versioned:all-srcs",
|
|
"//staging/src/k8s.io/sample-controller/pkg/client/informers/externalversions:all-srcs",
|
|
"//staging/src/k8s.io/sample-controller/pkg/client/listers/samplecontroller/v1alpha1:all-srcs",
|
|
"//staging/src/k8s.io/sample-controller/pkg/signals:all-srcs",
|
|
],
|
|
tags = ["automanaged"],
|
|
visibility = ["//visibility:public"],
|
|
)
|