Using bzlmod with Bazel 6 or later:
-
Add
common --enable_bzlmod
to.bazelrc
. -
Add to your
MODULE.bazel
file:
bazel_dep(name = "rules_gitops", version = "0.32.13")
git_override(
module_name = "rules_gitops",
commit = "a151864e056e374643699bcd042fd2eecde0a999",
remote = "https://github.com/fasterci/rules_gitops",
)
kustomize = use_extension("@rules_gitops//gitops:extensions.bzl", "kustomize")
kustomize.kustomize_toolchain()
use_repo(kustomize, "kustomize_bin")
Using WORKSPACE:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_gitops",
sha256 = "f7921b8f71fdcc27c3018483ccaa8f405183ccd47ead2cfed17729e06630f2fe",
strip_prefix = "rules_gitops-0.32.13",
urls = ["https://github.com/fasterci/rules_gitops/releases/download/v0.32.13/rules_gitops-v0.32.13.tar.gz"],
)
load("@rules_gitops//gitops:deps.bzl", "rules_gitops_dependencies")
rules_gitops_dependencies()
load("@rules_gitops//gitops:repositories.bzl", "rules_gitops_repositories")
rules_gitops_repositories()
load("@rules_gitops//skylib:k8s.bzl", "kubeconfig")
kubeconfig(
name = "k8s_dev_test",
cluster = "it_kubernetes_cluster_name",
use_host_config = True,
)
What's Changed
- adds option to overide CLUSTER argument in k8s_test_setup by @michaelschiff in #51
Full Changelog: v0.32.12...v0.32.13