...

Text file src/edge-infra.dev/third_party/k8s/rancher-local-storage/BUILD.bazel

Documentation: edge-infra.dev/third_party/k8s/rancher-local-storage

     1load("@aspect_bazel_lib//lib:copy_to_directory.bzl", "copy_to_directory")
     2load("@aspect_bazel_lib//lib:write_source_files.bzl", "write_source_file")
     3load("@rules_oci//oci:defs.bzl", "oci_image")
     4load("//hack/build/rules/container:index.bzl", "container_push")
     5
     6# load(":version.bzl", "REPO", "VERSION")
     7load(":version.bzl", "VERSION")
     8
     9package(default_visibility = ["//visibility:public"])
    10
    11copy_to_directory(
    12    name = "rancher_kustomizations",
    13    srcs = ["@rancher_local_storage_manifests//:file"],
    14    out = "rancher-kustomizations",
    15    allow_overwrites = True,
    16    exclude_srcs_patterns = [
    17        "example-config.yaml",
    18        "provisioner.yaml",
    19    ],
    20    include_external_repositories = ["**"],
    21    include_srcs_patterns = ["**.yaml"],
    22)
    23
    24write_source_file(
    25    name = "write_rancher_manifests",
    26    in_file = ":rancher_kustomizations",
    27    out_file = "base",
    28)
    29
    30oci_image(
    31    name = "local-path-provisioner",
    32    base = "@local_path_provisioner",
    33    tags = ["manual"],
    34)
    35
    36container_push(
    37    image = ":local-path-provisioner",
    38    # image_name = REPO,
    39    image_name = "rancher/local-path-provisioner",
    40    repository_file = "//hack/build/rules/container:thirdparty-repo",
    41    tag = "v{0}".format(VERSION),
    42)

View as plain text