-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathBUILD
75 lines (65 loc) · 1.86 KB
/
BUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
subinclude("//build_defs:docker")
subinclude("//build_defs:helm_chart")
subinclude("//build_defs:k8s")
sh_binary(
name = "deploy",
main = "deploy.sh",
)
# ==============================================================================
# NGINX
# ==============================================================================
k8s_config(
name = "nginx-operator",
srcs = ["//third_party:nginx-operator"],
)
# ==============================================================================
# METALLB
# ==============================================================================
k8s_config(
name = "metallb-namespace",
srcs = ["//third_party:metallb-namespace"],
)
k8s_config(
name = "metallb-deployment",
srcs = ["//third_party:metallb-deployment"],
)
k8s_config(
name = "metallb-config",
srcs = ["k8s/metallb-config.yaml"],
)
# ==============================================================================
# HAPROXY
# ==============================================================================
helm_chart(
name = "haproxy-helm",
src = "//third_party:helm-haproxy-tar",
install_path = "haproxy-ingress",
namespace = "haproxy",
visibility = ["//components/baremetal/..."],
values_file = ":haproxy-ingress-values",
deps = [
":haproxy-namespace",
":haproxy-ingress-values"
]
)
k8s_config(
name = "haproxy-namespace",
srcs = ["k8s/haproxy-namespace.yaml"],
)
filegroup(
name = "haproxy-ingress-values",
srcs = [
"k8s/haproxy-ingress-values.yaml",
],
)
# ==============================================================================
# SAMPLES
# ==============================================================================
k8s_config(
name = "sample-ingress",
srcs = ["k8s/sample-ingress.yaml"],
)
k8s_config(
name = "sample-pvc",
srcs = ["k8s/sample-pvc.yaml"],
)