Skip to content

Commit

Permalink
Update set of available kustomize tool versions
Browse files Browse the repository at this point in the history
Introduce kustomize version 5.4.1, and make that the default version.
  • Loading branch information
seh committed Apr 4, 2024
1 parent fd0a53c commit 16ee799
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 10 deletions.
8 changes: 4 additions & 4 deletions MODULE.bazel.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,13 @@ In order to use these rules in your Bazel project, you must instruct Bazel to do

.. code:: bazel
bazel_dep(name = "rules_kustomize", version = "0.3.9")
bazel_dep(name = "rules_kustomize", version = "0.3.10")
This declaration registers a particular version of the :tool:`helm` and :tool:`kustomize` tools, respectively. By default, it registers `the latest version known to the rules <Tool Versions_>`_. You can specify a preferred version for each tool by supplying the known version slug (e.g. "v4.5.7") as an argument to the respective module extension's :field:`download` tag.

.. code:: bazel
bazel_dep(name = "rules_kustomize", version = "0.3.9")
bazel_dep(name = "rules_kustomize", version = "0.3.10")
kustomize = use_extension("@rules_kustomize//kustomize:extensions.bzl", "kustomize")
kustomize.download(version = "v5.3.0")
Expand All @@ -146,7 +146,8 @@ At present, these rules can load the following versions of these tools:

* :tool:`kustomize`

* `v5.4.0 <https://github.com/kubernetes-sigs/kustomize/releases/tag/kustomize%2Fv5.4.0>`__ (default)
* `v5.4.0 <https://github.com/kubernetes-sigs/kustomize/releases/tag/kustomize%2Fv5.4.1>`__ (default)
* `v5.4.0 <https://github.com/kubernetes-sigs/kustomize/releases/tag/kustomize%2Fv5.4.0>`__
* `v5.3.0 <https://github.com/kubernetes-sigs/kustomize/releases/tag/kustomize%2Fv5.3.0>`__
* `v5.2.1 <https://github.com/kubernetes-sigs/kustomize/releases/tag/kustomize%2Fv5.2.1>`__
* `v5.1.0 <https://github.com/kubernetes-sigs/kustomize/releases/tag/kustomize%2Fv5.1.0>`__
Expand Down
10 changes: 9 additions & 1 deletion kustomize/private/tools/kustomize/toolchain.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
visibility("public")

_TOOLS_BY_RELEASE = {
"v5.4.1": {
struct(os = "darwin", arch = "amd64"): "112bde0d44d804c8fd70375bbd80ea7ef5224b18122283838372fd18f4fb1d64",
struct(os = "darwin", arch = "arm64"): "522916f9b770b42c0e44747bb9e4e7c64bd9e294fe328d4359a005044d776554",
struct(os = "linux", arch = "amd64"): "3d659a80398658d4fec4ec4ca184b432afa1d86451a60be63ca6e14311fc1c42",
struct(os = "linux", arch = "arm64"): "123b9ce38e04a03de5907153ef7f16979027bad16d0763a304e59dcf69ac6d30",
struct(os = "windows", arch = "amd64"): "9586f22645308fe073c3804e38cb23d32f8f5ebf96ece435c1e82ab893c3fc3e",
struct(os = "windows", arch = "arm64"): "a09023d49347a299ff90ff7e55d31215b051b551735f8ea073087d06aea24d56",
},
"v5.4.0": {
struct(os = "darwin", arch = "amd64"): "463214ec342f3a85d36c8b92f5453d46be6765b7f051b743567556f968f04c35",
struct(os = "darwin", arch = "arm64"): "a4c4b0804609ad05309490dabff79ff06382e0c93a5aea8851bd4e8f2623e655",
Expand Down Expand Up @@ -53,7 +61,7 @@ _TOOLS_BY_RELEASE = {
},
}

_DEFAULT_TOOL_VERSION = "v5.4.0"
_DEFAULT_TOOL_VERSION = "v5.4.1"

def known_release_versions():
return _TOOLS_BY_RELEASE.keys()
Expand Down
4 changes: 2 additions & 2 deletions test/testdata/overlay/golden.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ data:
kind: ConfigMap
metadata:
labels:
app.kubernetes.io/managed-by: kustomize-unknown
app.kubernetes.io/managed-by: kustomize-v5.4.1
name: translations-t8gcg5kbfg
namespace: test
---
apiVersion: v1
kind: Pod
metadata:
labels:
app.kubernetes.io/managed-by: kustomize-unknown
app.kubernetes.io/managed-by: kustomize-v5.4.1
name: show-config
namespace: test
spec:
Expand Down

0 comments on commit 16ee799

Please sign in to comment.