github.com/GoogleCloudPlatform/testgrid@v0.0.174/cluster/prod/BUILD.bazel (about) 1 # Copyright 2020 The Kubernetes Authors. 2 # 3 # Licensed under the Apache License, Version 2.0 (the "License"); 4 # you may not use this file except in compliance with the License. 5 # You may obtain a copy of the License at 6 # 7 # http://www.apache.org/licenses/LICENSE-2.0 8 # 9 # Unless required by applicable law or agreed to in writing, software 10 # distributed under the License is distributed on an "AS IS" BASIS, 11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 # See the License for the specific language governing permissions and 13 # limitations under the License. 14 15 load("@io_bazel_rules_k8s//k8s:object.bzl", "k8s_object") 16 load("@io_bazel_rules_k8s//k8s:objects.bzl", "k8s_objects") 17 18 k8s_objects( 19 name = "prod", 20 objects = [ 21 ":namespace", # Must be first 22 ":api", 23 ":summarizer", 24 ":updater", 25 ":config_merger", 26 ":tabulator", 27 ":knative-prod", 28 ], 29 ) 30 31 k8s_objects( 32 name = "knative-prod", # TODO(fejta): move to knative dir 33 objects = [ 34 ":knative-namespace", # Must be first 35 ":knative-summarizer", 36 ":knative-updater", 37 ":knative-tabulator", 38 ], 39 ) 40 41 CLUSTER = "{STABLE_TESTGRID_CLUSTER}" 42 43 MULTI_KIND = None 44 45 k8s_object( 46 name = "api", 47 cluster = CLUSTER, 48 kind = MULTI_KIND, 49 template = "api.yaml", 50 ) 51 52 k8s_object( 53 name = "updater", 54 cluster = CLUSTER, 55 kind = MULTI_KIND, 56 template = "updater.yaml", 57 ) 58 59 k8s_object( 60 name = "summarizer", 61 cluster = CLUSTER, 62 kind = MULTI_KIND, 63 template = "summarizer.yaml", 64 ) 65 66 k8s_object( 67 name = "config_merger", 68 cluster = CLUSTER, 69 kind = MULTI_KIND, 70 template = "config_merger.yaml", 71 ) 72 73 k8s_object( 74 name = "tabulator", 75 cluster = CLUSTER, 76 kind = MULTI_KIND, 77 template = "tabulator.yaml", 78 ) 79 80 k8s_object( 81 name = "namespace", 82 cluster = CLUSTER, 83 kind = "Namespace", 84 template = "namespace.yaml", 85 ) 86 87 k8s_object( 88 name = "knative-namespace", 89 cluster = CLUSTER, 90 kind = "Namespace", 91 template = "knative/namespace.yaml", 92 ) 93 94 k8s_object( 95 name = "knative-updater", 96 cluster = CLUSTER, 97 kind = MULTI_KIND, 98 template = "knative/updater.yaml", 99 ) 100 101 k8s_object( 102 name = "knative-summarizer", 103 cluster = CLUSTER, 104 kind = MULTI_KIND, 105 template = "knative/summarizer.yaml", 106 ) 107 108 k8s_object( 109 name = "knative-tabulator", 110 cluster = CLUSTER, 111 kind = MULTI_KIND, 112 template = "knative/tabulator.yaml", 113 ) 114 115 filegroup( 116 name = "package-srcs", 117 srcs = glob(["**"]), 118 tags = ["automanaged"], 119 visibility = ["//visibility:private"], 120 ) 121 122 filegroup( 123 name = "all-srcs", 124 srcs = [":package-srcs"], 125 tags = ["automanaged"], 126 visibility = ["//visibility:public"], 127 )