Skip to content

Commit

Permalink
chore: add external-snapshotter and rook to Renovate
Browse files Browse the repository at this point in the history
Signed-off-by: Niccolò Fei <[email protected]>
  • Loading branch information
NiccoloFei committed Mar 8, 2024
1 parent f17fe4f commit 4f9b802
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 3 deletions.
75 changes: 75 additions & 0 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,81 @@
"versioningTemplate": "loose",
"depNameTemplate": "github.com/goreleaser/goreleaser",
}, {
// We want a PR to bump the external-snapshotter version
"fileMatch": [
"^.github/workflows/continuous-delivery.yml",
"^hack/setup-cluster\.sh$",
],
"matchStrings": [
"EXTERNAL_SNAPSHOTTER_VERSION: \"(?<currentValue>.*?)\"",
"EXTERNAL_SNAPSHOTTER_VERSION=(?<currentValue>.*?)\\n",
],
"datasourceTemplate": "github-releases",
"versioningTemplate": "loose",
"depNameTemplate": "kubernetes-csi/external-snapshotter",
"extractVersionTemplate": "^(?<version>v\\d+\\.\\d+\\.\\d+)"
}, {
// We want a PR to bump the external-provisioner version
"fileMatch": [
"^hack/setup-cluster\.sh$",
],
"matchStrings": [
"EXTERNAL_PROVISIONER_VERSION=(?<currentValue>.*?)\\n",
],
"datasourceTemplate": "github-releases",
"versioningTemplate": "loose",
"depNameTemplate": "kubernetes-csi/external-provisioner",
"extractVersionTemplate": "^(?<version>v\\d+\\.\\d+\\.\\d+)"
}, {
// We want a PR to bump the external-resizer version
"fileMatch": [
"^hack/setup-cluster\.sh$",
],
"matchStrings": [
"EXTERNAL_RESIZER_VERSION=(?<currentValue>.*?)\\n",
],
"datasourceTemplate": "github-releases",
"versioningTemplate": "loose",
"depNameTemplate": "kubernetes-csi/external-resizer",
"extractVersionTemplate": "^(?<version>v\\d+\\.\\d+\\.\\d+)"
}, {
// We want a PR to bump the external-attacher version
"fileMatch": [
"^hack/setup-cluster\.sh$",
],
"matchStrings": [
"EXTERNAL_ATTACHER_VERSION=(?<currentValue>.*?)\\n",
],
"datasourceTemplate": "github-releases",
"versioningTemplate": "loose",
"depNameTemplate": "kubernetes-csi/external-attacher",
"extractVersionTemplate": "^(?<version>v\\d+\\.\\d+\\.\\d+)"
}, {
// We want a PR to bump the csi-driver-host-path version
"fileMatch": [
"^hack/setup-cluster\.sh$",
],
"matchStrings": [
"CSI_DRIVER_HOST_PATH_DEFAULT_VERSION=(?<currentValue>.*?)\\n",
],
"datasourceTemplate": "github-releases",
"versioningTemplate": "loose",
"depNameTemplate": "kubernetes-csi/csi-driver-host-path",
"extractVersionTemplate": "^(?<version>v\\d+\\.\\d+\\.\\d+)"
}, {
// We want a PR to bump the rook version
"fileMatch": [
"^.github/workflows/continuous-delivery.yml",
],
"matchStrings": [
"ROOK_VERSION: \"(?<currentValue>.*?)\"",
],
"datasourceTemplate": "github-releases",
"versioningTemplate": "loose",
"depNameTemplate": "rook/rook",
"extractVersionTemplate": "^(?<version>v\\d+\\.\\d+\\.\\d+)"
}, {
// We want a PR to bump kind version
"fileMatch": [
"^.github/workflows/continuous-delivery.yml"
],
Expand Down
6 changes: 3 additions & 3 deletions hack/setup-cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -377,11 +377,11 @@ deploy_csi_host_path() {
kubectl apply -f "${CSI_BASE_URL}"/external-resizer/"${EXTERNAL_RESIZER_VERSION}"/deploy/kubernetes/rbac.yaml

## Install driver and plugin
kubectl apply -f "${CSI_BASE_URL}"/csi-driver-host-path/"${CSI_DRIVER_HOST_PATH_VERSION}"/deploy/kubernetes-1.24/hostpath/csi-hostpath-driverinfo.yaml
kubectl apply -f "${CSI_BASE_URL}"/csi-driver-host-path/"${CSI_DRIVER_HOST_PATH_VERSION}"/deploy/kubernetes-1.24/hostpath/csi-hostpath-plugin.yaml
kubectl apply -f "${CSI_BASE_URL}"/csi-driver-host-path/"${CSI_DRIVER_HOST_PATH_VERSION}"/deploy/kubernetes-latest/hostpath/csi-hostpath-driverinfo.yaml
kubectl apply -f "${CSI_BASE_URL}"/csi-driver-host-path/"${CSI_DRIVER_HOST_PATH_VERSION}"/deploy/kubernetes-latest/hostpath/csi-hostpath-plugin.yaml

## create volumesnapshotclass
kubectl apply -f "${CSI_BASE_URL}"/csi-driver-host-path/"${CSI_DRIVER_HOST_PATH_VERSION}"/deploy/kubernetes-1.24/hostpath/csi-hostpath-snapshotclass.yaml
kubectl apply -f "${CSI_BASE_URL}"/csi-driver-host-path/"${CSI_DRIVER_HOST_PATH_VERSION}"/deploy/kubernetes-latest/hostpath/csi-hostpath-snapshotclass.yaml

## create storage class
kubectl apply -f "${CSI_BASE_URL}"/csi-driver-host-path/"${CSI_DRIVER_HOST_PATH_VERSION}"/examples/csi-storageclass.yaml
Expand Down

0 comments on commit 4f9b802

Please sign in to comment.