diff --git a/README.md b/README.md index 0d2d828..cce865c 100644 --- a/README.md +++ b/README.md @@ -19,8 +19,9 @@ https://aquaproj.github.io/ * 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) * [golang/go](https://github.com/golang/go) + * [kubernetes-sigs/kustomize](https://github.com/kubernetes-sigs/kustomize) + * [kubernetes/kubectl](https://github.com/kubernetes/kubectl) * [base](base.json) * aqua.yaml * [action](action.json) @@ -29,10 +30,12 @@ https://aquaproj.github.io/ * 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 * [golang-go](golang-go.json) * [golang/go](https://github.com/golang/go). `fileMatch` is parameterized +* [kubernetes-sigs-kustomize](kubernetes-sigs-kustomize.json) + * [kubernetes-sigs/kustomize](https://github.com/kubernetes-sigs/kustomize). `fileMatch` is parameterized +* [kubernetes-kubectl](kubernetes-kubectl.json) + * [kubernetes/kubectl](https://github.com/kubernetes/kubectl). `fileMatch` is parameterized ## How to use diff --git a/default.json b/default.json index 5d23677..fb5cc33 100644 --- a/default.json +++ b/default.json @@ -51,6 +51,16 @@ "extractVersionTemplate": "^go(?.*)$", "datasourceTemplate": "github-tags", "depNameTemplate": "golang/go" + }, + { + "fileMatch": ["\\.?aqua\\.ya?ml"], + "matchStrings": [ + " +['\"]?version['\"]? *: +['\"]?v(?[^'\" \\n]+)['\"]? +# renovate: depName=kubernetes/kubectl[ \\n]", + " +['\"]?name['\"]? *: +['\"]?kubernetes/kubectl@v(?[^'\" \\n]+)['\"]?" + ], + "extractVersionTemplate": "^kubernetes-(?.*)$", + "datasourceTemplate": "github-tags", + "depNameTemplate": "kubernetes/kubectl" } ] } diff --git a/kubernetes-kubectl.json b/kubernetes-kubectl.json new file mode 100644 index 0000000..167ac2d --- /dev/null +++ b/kubernetes-kubectl.json @@ -0,0 +1,15 @@ +{ + "regexManagers": [ + { + "fileMatch": ["{{arg0}}"], + "matchStrings": [ + " +['\"]?version['\"]? *: +['\"]?v(?[^'\" \\n]+)['\"]? +# renovate: depName=kubernetes/kubectl[ \\n]", + " +['\"]?name['\"]? *: +['\"]?kubernetes/kubectl@v(?[^'\" \\n]+)['\"]?" + ], + "extractVersionTemplate": "^kubernetes-(?.*)$", + "datasourceTemplate": "github-tags", + "depNameTemplate": "kubernetes/kubectl" + } + ] +} +