From 47f7bfa240e76d3f70bdfc0e5b79b118045225fc Mon Sep 17 00:00:00 2001 From: Shunsuke Suzuki Date: Sun, 2 Jan 2022 10:42:49 +0900 Subject: [PATCH] feat: add a preset to update kustomize --- README.md | 21 +++++++++++++++------ default.json | 10 ++++++++++ kubernetes-sigs-kustomize.json | 15 +++++++++++++++ 3 files changed, 40 insertions(+), 6 deletions(-) create mode 100644 kubernetes-sigs-kustomize.json diff --git a/README.md b/README.md index b8dbfeb..0e24f9e 100644 --- a/README.md +++ b/README.md @@ -15,12 +15,21 @@ https://aquaproj.github.io/ ## List of Presets -* [default](default.json): Update aqua.yaml and GitHub Actions [aquaproj/aqua-installer](https://github.com/aquaproj/aqua-installer)'s `aqua_version` and [aquaproj/aqua-renovate-config](https://github.com/aquaproj/aqua-renovate-config) - * `base` and `action` presets are included -* [base](base.json): Update aqua.yaml -* [action](action.json): Update GitHub Actions [aquaproj/aqua-installer](https://github.com/aquaproj/aqua-installer)'s `aqua_version` -* [file](file.json): Update aqua.yaml. `fileMatch` is parameterized -* [installer-script](installer-script.json): Update the shell script [aquaproj/aqua-installer](https://github.com/aquaproj/aqua-installer). `fileMatch` is parameterized +* [default](default.json) + * aqua.yaml + * GitHub Actions [aquaproj/aqua-installer](https://github.com/aquaproj/aqua-installer)'s `aqua_version` + * [aquaproj/aqua-renovate-config](https://github.com/aquaproj/aqua-renovate-config) + * [kubernetes-sigs/kustomize](https://github.com/kubernetes-sigs/kustomize) +* [base](base.json) + * aqua.yaml +* [action](action.json) + * GitHub Actions [aquaproj/aqua-installer](https://github.com/aquaproj/aqua-installer)'s `aqua_version` +* [file](file.json) + * aqua.yaml. `fileMatch` is parameterized +* [installer-script](installer-script.json) + * the shell script [aquaproj/aqua-installer](https://github.com/aquaproj/aqua-installer). `fileMatch` is parameterized +* [kubernetes-sigs-kustomize](kubernetes-sigs-kustomize.json) + * [kubernetes-sigs/kustomize](https://github.com/kubernetes-sigs/kustomize). `fileMatch` is parameterized ## How to use diff --git a/default.json b/default.json index e5f5652..a6903b6 100644 --- a/default.json +++ b/default.json @@ -31,6 +31,16 @@ ], "datasourceTemplate": "github-releases", "depNameTemplate": "aquaproj/aqua-renovate-config" + }, + { + "fileMatch": ["\\.?aqua\\.ya?ml"], + "matchStrings": [ + " +['\"]?version['\"]? *: +['\"]?kustomize/(?[^'\" \\n]+)['\"]?", + " +['\"]?name['\"]? *: +['\"]?kubernetes-sigs/kustomize@kustomize/(?[^'\" \\n]+)['\"]?" + ], + "extractVersionTemplate": "^kustomize/(?.*)$", + "datasourceTemplate": "github-releases", + "depNameTemplate": "kubernetes-sigs/kustomize" } ] } diff --git a/kubernetes-sigs-kustomize.json b/kubernetes-sigs-kustomize.json new file mode 100644 index 0000000..e8df89a --- /dev/null +++ b/kubernetes-sigs-kustomize.json @@ -0,0 +1,15 @@ +{ + "regexManagers": [ + { + "fileMatch": ["{{arg0}}"], + "matchStrings": [ + " +['\"]?version['\"]? *: +['\"]?kustomize/(?[^'\" \\n]+)['\"]?", + " +['\"]?name['\"]? *: +['\"]?kubernetes-sigs/kustomize@kustomize/(?[^'\" \\n]+)['\"]?" + ], + "extractVersionTemplate": "^kustomize/(?.*)$", + "datasourceTemplate": "github-releases", + "depNameTemplate": "kubernetes-sigs/kustomize" + } + ] +} +