|
| 1 | +load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") |
| 2 | + |
| 3 | +go_library( |
| 4 | + name = "go_default_library", |
| 5 | + srcs = [ |
| 6 | + "controller.go", |
| 7 | + "main.go", |
| 8 | + ], |
| 9 | + importpath = "k8s.io/sample-controller", |
| 10 | + visibility = ["//visibility:private"], |
| 11 | + deps = [ |
| 12 | + "//vendor/github.com/golang/glog:go_default_library", |
| 13 | + "//vendor/k8s.io/api/apps/v1beta2:go_default_library", |
| 14 | + "//vendor/k8s.io/api/core/v1:go_default_library", |
| 15 | + "//vendor/k8s.io/apimachinery/pkg/api/errors:go_default_library", |
| 16 | + "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", |
| 17 | + "//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library", |
| 18 | + "//vendor/k8s.io/apimachinery/pkg/util/runtime:go_default_library", |
| 19 | + "//vendor/k8s.io/apimachinery/pkg/util/wait:go_default_library", |
| 20 | + "//vendor/k8s.io/client-go/informers:go_default_library", |
| 21 | + "//vendor/k8s.io/client-go/kubernetes:go_default_library", |
| 22 | + "//vendor/k8s.io/client-go/kubernetes/scheme:go_default_library", |
| 23 | + "//vendor/k8s.io/client-go/kubernetes/typed/core/v1:go_default_library", |
| 24 | + "//vendor/k8s.io/client-go/listers/apps/v1beta2:go_default_library", |
| 25 | + "//vendor/k8s.io/client-go/tools/cache:go_default_library", |
| 26 | + "//vendor/k8s.io/client-go/tools/clientcmd:go_default_library", |
| 27 | + "//vendor/k8s.io/client-go/tools/record:go_default_library", |
| 28 | + "//vendor/k8s.io/client-go/util/workqueue:go_default_library", |
| 29 | + "//vendor/k8s.io/sample-controller/pkg/apis/samplecontroller/v1alpha1:go_default_library", |
| 30 | + "//vendor/k8s.io/sample-controller/pkg/client/clientset/versioned:go_default_library", |
| 31 | + "//vendor/k8s.io/sample-controller/pkg/client/clientset/versioned/scheme:go_default_library", |
| 32 | + "//vendor/k8s.io/sample-controller/pkg/client/informers/externalversions:go_default_library", |
| 33 | + "//vendor/k8s.io/sample-controller/pkg/client/listers/samplecontroller/v1alpha1:go_default_library", |
| 34 | + "//vendor/k8s.io/sample-controller/pkg/signals:go_default_library", |
| 35 | + ], |
| 36 | +) |
| 37 | + |
| 38 | +go_binary( |
| 39 | + name = "sample-controller", |
| 40 | + importpath = "k8s.io/sample-controller", |
| 41 | + library = ":go_default_library", |
| 42 | + visibility = ["//visibility:public"], |
| 43 | +) |
| 44 | + |
| 45 | +filegroup( |
| 46 | + name = "package-srcs", |
| 47 | + srcs = glob(["**"]), |
| 48 | + tags = ["automanaged"], |
| 49 | + visibility = ["//visibility:private"], |
| 50 | +) |
| 51 | + |
| 52 | +filegroup( |
| 53 | + name = "all-srcs", |
| 54 | + srcs = [ |
| 55 | + ":package-srcs", |
| 56 | + "//staging/src/k8s.io/sample-controller/pkg/apis/samplecontroller:all-srcs", |
| 57 | + "//staging/src/k8s.io/sample-controller/pkg/client/clientset/versioned:all-srcs", |
| 58 | + "//staging/src/k8s.io/sample-controller/pkg/client/informers/externalversions:all-srcs", |
| 59 | + "//staging/src/k8s.io/sample-controller/pkg/client/listers/samplecontroller/v1alpha1:all-srcs", |
| 60 | + "//staging/src/k8s.io/sample-controller/pkg/signals:all-srcs", |
| 61 | + ], |
| 62 | + tags = ["automanaged"], |
| 63 | + visibility = ["//visibility:public"], |
| 64 | +) |
0 commit comments