github.com/GoogleCloudPlatform/testgrid@v0.0.174/cluster/canary/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 = "canary",
    20      objects = [
    21          ":namespace",  # Must be first
    22          ":api",
    23          ":summarizer",
    24          ":updater",
    25          ":config_merger",
    26          "tabulator",
    27      ],
    28  )
    29  
    30  CLUSTER = "{STABLE_TESTGRID_CLUSTER}"
    31  
    32  MULTI_KIND = None
    33  
    34  k8s_object(
    35      name = "api",
    36      cluster = CLUSTER,
    37      kind = MULTI_KIND,
    38      template = "api.yaml",
    39  )
    40  
    41  k8s_object(
    42      name = "updater",
    43      cluster = CLUSTER,
    44      kind = MULTI_KIND,
    45      template = "updater.yaml",
    46  )
    47  
    48  k8s_object(
    49      name = "summarizer",
    50      cluster = CLUSTER,
    51      kind = MULTI_KIND,
    52      template = "summarizer.yaml",
    53  )
    54  
    55  k8s_object(
    56      name = "config_merger",
    57      cluster = CLUSTER,
    58      kind = MULTI_KIND,
    59      template = "config_merger.yaml",
    60  )
    61  
    62  k8s_object(
    63      name = "tabulator",
    64      cluster = CLUSTER,
    65      kind = MULTI_KIND,
    66      template = "tabulator.yaml",
    67  )
    68  
    69  k8s_object(
    70      name = "namespace",
    71      cluster = CLUSTER,
    72      kind = "Namespace",
    73      template = "namespace.yaml",
    74  )
    75  
    76  filegroup(
    77      name = "package-srcs",
    78      srcs = glob(["**"]),
    79      tags = ["automanaged"],
    80      visibility = ["//visibility:private"],
    81  )
    82  
    83  filegroup(
    84      name = "all-srcs",
    85      srcs = [":package-srcs"],
    86      tags = ["automanaged"],
    87      visibility = ["//visibility:public"],
    88  )