""" Name: Local Path Provisioner Description: Local Storage Provider Repo: https://github.com/rancher/local-path-provisioner Release Cadence: Upgrade to every patch version. Upgrade Steps: 1. Set the `VERSION` variable to the new version. 2. Replace the container image digests (`PROVISIONER_DIGEST`), which can be found by running; bazel run @com_github_google_go_containerregistry//cmd/crane -- digest --platform=linux/amd64 rancher/local-path-provisioner: 3. Update the `PROVISIONER_ARCHIVE_SHA` value; which can be retrieved by running; sha256sum 4. Run `just third_party/k8s/rancher-local-storage/update` """ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") VERSION = "0.0.28" PROVISIONER_DIGEST = "sha256:cdf9953e88a7afd3674b1203e3179c5be45b7c4f25c1596bb4885519b768601a" PROVISIONER_ARCHIVE_SHA = "e57f1845216ea143151d7c565129dcd6bdab9b76c2601b052e4e0c119151438b" REPO = "rancher/local-path-provisioner" REGISTRY = "index.docker.io" RANCHER_LOCAL_STORAGE_IMAGES = { "local-path-provisioner": { "TAG": "v{0}".format(VERSION), "DIGEST": PROVISIONER_DIGEST, "REPO": REPO, "REGISTRY": REGISTRY, }, } def fetch_rancher_local_storage_manifests(): """Returns all http_* targets for the local storage manifest bundles we rely on""" http_archive( name = "rancher_local_storage_manifests", build_file_content = """ package(default_visibility = ["//visibility:public"]) filegroup( name = "file", srcs = glob(["**"]), visibility = ["//visibility:public"], ) """, strip_prefix = "local-path-provisioner-{0}/deploy".format(VERSION), sha256 = PROVISIONER_ARCHIVE_SHA, urls = ["https://github.com/rancher/local-path-provisioner/archive/refs/tags/v{version}.tar.gz".format( version = VERSION, )], )