Serge Bazanski | 6495653 | 2021-01-30 19:19:32 +0100 | [diff] [blame] | 1 | load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library", "go_test") |
| 2 | |
| 3 | go_library( |
| 4 | name = "go_default_library", |
| 5 | srcs = [ |
| 6 | "ingress.go", |
| 7 | "main.go", |
Serge Bazanski | c611864 | 2021-01-31 01:17:38 +0100 | [diff] [blame] | 8 | "service.go", |
Serge Bazanski | 6495653 | 2021-01-30 19:19:32 +0100 | [diff] [blame] | 9 | ], |
| 10 | importpath = "code.hackerspace.pl/hscloud/cluster/admitomatic", |
| 11 | visibility = ["//visibility:private"], |
| 12 | deps = [ |
Serge Bazanski | c611864 | 2021-01-31 01:17:38 +0100 | [diff] [blame] | 13 | "//cluster/admitomatic/config:go_default_library", |
Serge Bazanski | 6495653 | 2021-01-30 19:19:32 +0100 | [diff] [blame] | 14 | "//go/mirko:go_default_library", |
| 15 | "@com_github_golang_glog//:go_default_library", |
| 16 | "@io_k8s_api//admission/v1beta1:go_default_library", |
Serge Bazanski | 5d2c8fc | 2021-01-30 21:23:53 +0100 | [diff] [blame] | 17 | "@io_k8s_api//networking/v1beta1:go_default_library", |
| 18 | "@io_k8s_apimachinery//pkg/apis/meta/v1:go_default_library", |
Serge Bazanski | c611864 | 2021-01-31 01:17:38 +0100 | [diff] [blame] | 19 | "@org_golang_google_protobuf//encoding/prototext:go_default_library", |
Serge Bazanski | 6495653 | 2021-01-30 19:19:32 +0100 | [diff] [blame] | 20 | ], |
| 21 | ) |
| 22 | |
| 23 | go_binary( |
| 24 | name = "admitomatic", |
| 25 | embed = [":go_default_library"], |
| 26 | visibility = ["//visibility:public"], |
| 27 | ) |
| 28 | |
| 29 | go_test( |
| 30 | name = "go_default_test", |
| 31 | srcs = ["ingress_test.go"], |
| 32 | embed = [":go_default_library"], |
Serge Bazanski | 5d2c8fc | 2021-01-30 21:23:53 +0100 | [diff] [blame] | 33 | deps = [ |
| 34 | "@io_k8s_api//admission/v1beta1:go_default_library", |
| 35 | "@io_k8s_api//networking/v1beta1:go_default_library", |
| 36 | "@io_k8s_apimachinery//pkg/apis/meta/v1:go_default_library", |
| 37 | "@io_k8s_apimachinery//pkg/runtime:go_default_library", |
| 38 | ], |
Serge Bazanski | 6495653 | 2021-01-30 19:19:32 +0100 | [diff] [blame] | 39 | ) |