Skip to content

Commit

Permalink
Merge pull request #94 from aquaproj/feat/support-kubectl
Browse files Browse the repository at this point in the history
feat: suppport kubernetes/kubectl
  • Loading branch information
suzuki-shunsuke authored Jan 2, 2022
2 parents 8b222f0 + adae000 commit 01575ed
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 3 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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

Expand Down
10 changes: 10 additions & 0 deletions default.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,16 @@
"extractVersionTemplate": "^go(?<version>.*)$",
"datasourceTemplate": "github-tags",
"depNameTemplate": "golang/go"
},
{
"fileMatch": ["\\.?aqua\\.ya?ml"],
"matchStrings": [
" +['\"]?version['\"]? *: +['\"]?v(?<currentValue>[^'\" \\n]+)['\"]? +# renovate: depName=kubernetes/kubectl[ \\n]",
" +['\"]?name['\"]? *: +['\"]?kubernetes/kubectl@v(?<currentValue>[^'\" \\n]+)['\"]?"
],
"extractVersionTemplate": "^kubernetes-(?<version>.*)$",
"datasourceTemplate": "github-tags",
"depNameTemplate": "kubernetes/kubectl"
}
]
}
15 changes: 15 additions & 0 deletions kubernetes-kubectl.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"regexManagers": [
{
"fileMatch": ["{{arg0}}"],
"matchStrings": [
" +['\"]?version['\"]? *: +['\"]?v(?<currentValue>[^'\" \\n]+)['\"]? +# renovate: depName=kubernetes/kubectl[ \\n]",
" +['\"]?name['\"]? *: +['\"]?kubernetes/kubectl@v(?<currentValue>[^'\" \\n]+)['\"]?"
],
"extractVersionTemplate": "^kubernetes-(?<version>.*)$",
"datasourceTemplate": "github-tags",
"depNameTemplate": "kubernetes/kubectl"
}
]
}

0 comments on commit 01575ed

Please sign in to comment.