From 136539cd77f140b72bf67e660e067ecb25222efc Mon Sep 17 00:00:00 2001 From: "publish-to-bcr-bot[bot]" <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> Date: Wed, 30 Oct 2024 08:15:56 +0100 Subject: [PATCH] rules_helm@0.8.0 (#3054) Release: https://github.com/abrisco/rules_helm/releases/tag/0.8.0 _Automated by [Publish to BCR](https://github.com/apps/publish-to-bcr)_ Co-authored-by: publish-to-bcr-bot <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> --- modules/rules_helm/0.8.0/MODULE.bazel | 49 ++++++++++++++++++++++++++ modules/rules_helm/0.8.0/presubmit.yml | 21 +++++++++++ modules/rules_helm/0.8.0/source.json | 5 +++ modules/rules_helm/metadata.json | 3 +- 4 files changed, 77 insertions(+), 1 deletion(-) create mode 100644 modules/rules_helm/0.8.0/MODULE.bazel create mode 100644 modules/rules_helm/0.8.0/presubmit.yml create mode 100644 modules/rules_helm/0.8.0/source.json diff --git a/modules/rules_helm/0.8.0/MODULE.bazel b/modules/rules_helm/0.8.0/MODULE.bazel new file mode 100644 index 00000000000..f1a1814249a --- /dev/null +++ b/modules/rules_helm/0.8.0/MODULE.bazel @@ -0,0 +1,49 @@ +"""abrisco/rules_helm""" + +module( + name = "rules_helm", + version = "0.8.0", + compatibility_level = 1, +) + +bazel_dep(name = "platforms", version = "0.0.8") +bazel_dep(name = "bazel_skylib", version = "1.7.1") +bazel_dep(name = "rules_go", version = "0.45.1", repo_name = "io_bazel_rules_go") + +# This is unfortunately required by `rules_oci`. +# https://github.com/bazel-contrib/rules_oci/issues/575 +bazel_dep(name = "aspect_bazel_lib", version = "2.7.2", dev_dependency = True) +bazel_dep(name = "rules_oci", version = "2.0.0", dev_dependency = True) +bazel_dep(name = "stardoc", version = "0.6.2", dev_dependency = True, repo_name = "io_bazel_stardoc") + +go_sdk = use_extension("@io_bazel_rules_go//go:extensions.bzl", "go_sdk") +go_sdk.download(version = "1.18.10") + +helm = use_extension("@rules_helm//helm:extensions.bzl", "helm") +helm.options() +use_repo( + helm, + "helm", + "helm_darwin_amd64_toolchain", + "helm_darwin_arm64_toolchain", + "helm_linux_amd64_toolchain", + "helm_linux_arm64_toolchain", + "helm_windows_amd64_toolchain", +) +use_repo(helm, "go_yaml_yaml") + +register_toolchains( + "@helm_darwin_amd64_toolchain//:toolchain", + "@helm_darwin_arm64_toolchain//:toolchain", + "@helm_linux_amd64_toolchain//:toolchain", + "@helm_linux_arm64_toolchain//:toolchain", + "@helm_windows_amd64_toolchain//:toolchain", +) + +helm_test = use_extension("@rules_helm//tests:test_extensions.bzl", "helm_test", dev_dependency = True) +use_repo( + helm_test, + "helm_test_deps__with_chart_deps_postgresql", + "helm_test_deps__with_chart_deps_redis", + "rules_helm_test_container_base", +) diff --git a/modules/rules_helm/0.8.0/presubmit.yml b/modules/rules_helm/0.8.0/presubmit.yml new file mode 100644 index 00000000000..3266c6ab15a --- /dev/null +++ b/modules/rules_helm/0.8.0/presubmit.yml @@ -0,0 +1,21 @@ +--- +bcr_test_module: + # TODO(abrisco/rules_helm#38): Have this run in a regression test + # directory which is consuming rules_helm and not just testing + # within the same repository. + module_path: "." + matrix: + platform: ["macos", "ubuntu2004", "windows"] + bazel: ["6.x", "7.x"] + tasks: + run_tests: + name: "Run test module" + platform: ${{ platform }} + bazel: ${{ bazel }} + build_flags: + - "--config=strict" + test_targets: + - "--" + - "//..." + # Docs test renders differently in bcr CI, don't test this. + - "-//docs:docs_diff_test" diff --git a/modules/rules_helm/0.8.0/source.json b/modules/rules_helm/0.8.0/source.json new file mode 100644 index 00000000000..29b0e9e7a33 --- /dev/null +++ b/modules/rules_helm/0.8.0/source.json @@ -0,0 +1,5 @@ +{ + "integrity": "sha256-OWzkWS33mpwIXTIE4Lw0MRDdFHt6xp19+9DTdhApMD0=", + "strip_prefix": "", + "url": "https://github.com/abrisco/rules_helm/releases/download/0.8.0/rules_helm-v0.8.0.tar.gz" +} diff --git a/modules/rules_helm/metadata.json b/modules/rules_helm/metadata.json index 39723f5addb..00e3775e7ae 100644 --- a/modules/rules_helm/metadata.json +++ b/modules/rules_helm/metadata.json @@ -20,7 +20,8 @@ "0.5.0", "0.5.1", "0.6.0", - "0.7.0" + "0.7.0", + "0.8.0" ], "yanked_versions": {} }