Skip to content

Commit

Permalink
Update README workspace example to use head of main.
Browse files Browse the repository at this point in the history
  • Loading branch information
bshi committed Dec 22, 2022
1 parent 4b97947 commit 63d6b58
Showing 1 changed file with 8 additions and 38 deletions.
46 changes: 8 additions & 38 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ The rules define a collection of Bazel macros for working with
[kustomize](https://kustomize.io/). These rules are intentionally lightweight
and intended to be composable with other Kubernetes related rules.

The rules are tested and supported on the following host platforms:
The rules are tested against Bazel 5.4 and supported on the following host
platforms:

* Linux, macOS
* amd64
* amd64, arm64

Patches to support additional platforms are welcome.

Expand All @@ -21,9 +22,9 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
name = "com_benchsci_rules_kustomize",
sha256 = "11d2e8fd9b7c0fd7a5611f1e28922bae9857b34f38f8c02f990a38697955678e",
strip_prefix = "rules_kustomize-e27643c79f86a1546faf9e4d6eef75d1e10a57bc",
urls = ["https://github.com/benchsci/rules_kustomize/archive/e27643c79f86a1546faf9e4d6eef75d1e10a57bc.zip"],
sha256 = "7c2308991352d534c4ad3d9a0e37eee402ccb8a7c96eeb718c18c52f81c45fb1",
strip_prefix = "rules_kustomize-4b979472aae1953799a616e45a10748acafcd982",
urls = ["https://github.com/benchsci/rules_kustomize/archive/4b979472aae1953799a616e45a10748acafcd982.zip"],
)

load("@com_benchsci_rules_kustomize//:workspace.bzl", "download_kustomize_deps")
Expand All @@ -39,39 +40,8 @@ download_gcloud_deps()
These rules make a best-effort attempt to track the stable releases of its
dependencies. If you need to lock to different versions you can specify them
explictly in your WORKSPACE file by copying and modifying the contents of the
helper functions in [workspace.bzl](./workspace.bzl), for example:

NB: Commits after 2021/05 require kubectl v1.19 or later (due to
`--dry-run=server` replacing `--server-dry-run`).

```bzl
http_archive_by_os(
name = "kustomize",
build_file_content = """package(default_visibility = ["//visibility:public"])\nfilegroup(\nname = "file",\nsrcs = ["kustomize"]\n)""",
sha256 = {
"darwin": "297289cc0699056be91050507fbbd3dbc3050ae20d64eb7965a3da3a8abaa87a",
"linux": "0aeca6a054183bd8e7c29307875c8162aba6d2d4e170d3e7751aa78660237126",
},
url = {
"darwin": "https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize%2Fv3.6.1/kustomize_v3.6.1_darwin_amd64.tar.gz",
"linux": "https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize%2Fv3.6.1/kustomize_v3.6.1_linux_amd64.tar.gz",
},
)

http_file(
name = "kubectl_darwin",
executable = True,
sha256 = "add0c291629809c03f09fd1fd1e29cc3ec19bef6c7e47766bfd2638b7d25d5cb",
urls = ["https://storage.googleapis.com/kubernetes-release/release/v1.19.11/bin/darwin/amd64/kubectl"],
)
http_file(
name = "kubectl_linux",
executable = True,
sha256 = "10b3bb2526b47f52be9f39cee6e42f8b30acc5b415e7bb7b446500bb41a6fd03",
urls = ["https://storage.googleapis.com/kubernetes-release/release/v1.19.11/bin/linux/amd64/kubectl"],
)

```
helper functions in [workspace.bzl](./workspace.bzl) (e.g. the body of the
`download_kustomize_deps` function)

# Additional tools:

Expand Down

0 comments on commit 63d6b58

Please sign in to comment.