Skip to content

v1.0.0

Compare
Choose a tag to compare
@danigar danigar released this 20 Nov 15:17
· 13 commits to master since this release
d27def2

Using Bzlmod with Bazel 6:

Add to your MODULE.bazel file:

bazel_dep(name = "masmovil_bazel_rules", version = "1.0.0")
git_override(module_name = "masmovil_bazel_rules", remote = "https://github.com/masmovil/bazel-rules", commit = "d27def26b8435233a1beae8f7cacfb5fcce803af")

We are still working on publishing the rules to the bazel central registry. In the meantime, if you want to use this rules you will can override them using git_override to fetch them from this git repository.

Using WORKSPACE:

Paste this into your WORKSPACE file:

workspace(
    name = "helm-workspace",
)

http_archive(
    name = "masmovil_bazel_rules",
    sha256 = "d9d56c1209ea292bb9d336b0517b22a2cd352eaddfb525ba7c03cb5a5ab2f378",
    urls = [
        "https://github.com/masmovil/bazel-rules/archive/refs/tags/v1.0.0.zip",
    ],
)

load("@masmovil_bazel_rules//:repositories.bzl", "mm_repositories")

mm_repositories()

load("@masmovil_bazel_rules//:config.bzl", "mm_config")

mm_config()

What's Changed

Major rewrite and internal refactor of the rules. Add bzlmod and rules_oci support.

Add new features to existent rules and implement new ones:

New features

  • Support a dictionary of values to substitute in helm charts
  • Create helm charts without specifying chart src files
  • helm_pull repository rule
  • helm_lint rule
  • helm_uninstall rule
  • Support publishing helm packages to both oci and non-oci registries
  • Adds Bzlmod support
  • rules_oci support (rules_docker still supported)
  • Rewrite all the docs using stardoc

Fix several issues:

  • Builds reproducibility
  • How stamp values are propagated to rules
  • Some minor issues

All changes should be retrocompatible and the APIS remains the same. Some rule attributes have been marked as deprecated but are still supported.