blob: 55c746681ce4319f909e818d355e82d333a5a4e9 [file] [log] [blame]
Serge Bazanski64956532021-01-30 19:19:32 +01001load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library", "go_test")
2
3go_library(
4 name = "go_default_library",
5 srcs = [
6 "ingress.go",
7 "main.go",
Serge Bazanskic6118642021-01-31 01:17:38 +01008 "service.go",
Serge Bazanski64956532021-01-30 19:19:32 +01009 ],
10 importpath = "code.hackerspace.pl/hscloud/cluster/admitomatic",
11 visibility = ["//visibility:private"],
12 deps = [
Serge Bazanskic6118642021-01-31 01:17:38 +010013 "//cluster/admitomatic/config:go_default_library",
Serge Bazanski64956532021-01-30 19:19:32 +010014 "//go/mirko:go_default_library",
15 "@com_github_golang_glog//:go_default_library",
16 "@io_k8s_api//admission/v1beta1:go_default_library",
Serge Bazanski5d2c8fc2021-01-30 21:23:53 +010017 "@io_k8s_api//networking/v1beta1:go_default_library",
18 "@io_k8s_apimachinery//pkg/apis/meta/v1:go_default_library",
Serge Bazanskic6118642021-01-31 01:17:38 +010019 "@org_golang_google_protobuf//encoding/prototext:go_default_library",
Serge Bazanski64956532021-01-30 19:19:32 +010020 ],
21)
22
23go_binary(
24 name = "admitomatic",
25 embed = [":go_default_library"],
26 visibility = ["//visibility:public"],
27)
28
29go_test(
30 name = "go_default_test",
31 srcs = ["ingress_test.go"],
32 embed = [":go_default_library"],
Serge Bazanski5d2c8fc2021-01-30 21:23:53 +010033 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 Bazanski64956532021-01-30 19:19:32 +010039)