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 bf499f3
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 7 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
14 changes: 7 additions & 7 deletions hack/setup-cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ fi
KIND_NODE_DEFAULT_VERSION=v1.29.2
K3D_NODE_DEFAULT_VERSION=v1.29.1
CSI_DRIVER_HOST_PATH_DEFAULT_VERSION=v1.11.0
EXTERNAL_SNAPSHOTTER_VERSION=v6.3.1
EXTERNAL_PROVISIONER_VERSION=v3.6.1
EXTERNAL_RESIZER_VERSION=v1.9.1
EXTERNAL_ATTACHER_VERSION=v4.4.1
K8S_VERSION=${K8S_VERSION-}
KUBECTL_VERSION=${KUBECTL_VERSION-}
CSI_DRIVER_HOST_PATH_VERSION=${CSI_DRIVER_HOST_PATH_VERSION:-$CSI_DRIVER_HOST_PATH_DEFAULT_VERSION}
Expand Down Expand Up @@ -354,10 +358,6 @@ deploy_fluentd() {
deploy_csi_host_path() {
echo "${bright}Starting deployment of CSI driver plugin... ${reset}"
CSI_BASE_URL=https://raw.githubusercontent.com/kubernetes-csi
EXTERNAL_SNAPSHOTTER_VERSION="v6.3.1"
EXTERNAL_PROVISIONER_VERSION="v3.6.1"
EXTERNAL_RESIZER_VERSION="v1.9.1"
EXTERNAL_ATTACHER_VERSION="v4.4.1"

## Install external snapshotter CRD
kubectl apply -f "${CSI_BASE_URL}"/external-snapshotter/"${EXTERNAL_SNAPSHOTTER_VERSION}"/client/config/crd/snapshot.storage.k8s.io_volumesnapshotclasses.yaml
Expand All @@ -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 bf499f3

Please sign in to comment.