Drop support for k8s <1.19

So that we can:
* Rely on existence of newer features
* Update external components' images
This commit is contained in:
Mehran Kholdi 2021-06-29 16:51:28 +04:30
parent c454a51ccd
commit eff26e8c3e
5 changed files with 11 additions and 8 deletions

View File

@ -2,8 +2,8 @@
set -ex
source .ci/common
K8S_VERSION=1.18.20
MINIKUBE_VERSION=1.18.1
K8S_VERSION=1.19.12
MINIKUBE_VERSION=1.19.0
curl -Lo kubectl https://storage.googleapis.com/kubernetes-release/release/v${K8S_VERSION}/bin/linux/amd64/kubectl && chmod +x kubectl && sudo mv kubectl /usr/local/bin/
sudo apt update && sudo apt install -y conntrack
curl -Lo minikube https://storage.googleapis.com/minikube/releases/v${MINIKUBE_VERSION}/minikube-linux-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/

View File

@ -5,6 +5,10 @@ RawFilePV
Kubernetes LocalPVs on Steroids
Prerequisite
---
- Kubernetes: 1.19+
Install
---
`helm install -n kube-system rawfile-csi ./deploy/charts/rawfile-csi/`

View File

@ -1,11 +1,10 @@
apiVersion: storage.k8s.io/v1beta1
apiVersion: storage.k8s.io/v1
kind: CSIDriver
metadata:
name: {{ .Values.provisionerName }}
spec:
attachRequired: false
podInfoOnMount: true
{{- if semverCompare ">=1.16" .Capabilities.KubeVersion.Version }}
fsGroupPolicy: File
volumeLifecycleModes:
- Persistent
{{- end }}

View File

@ -61,7 +61,7 @@ spec:
resources:
{{- toYaml .Values.controller.resources | nindent 12 }}
- name: external-provisioner
image: k8s.gcr.io/sig-storage/csi-provisioner:v2.0.0
image: k8s.gcr.io/sig-storage/csi-provisioner:v2.2.2
imagePullPolicy: IfNotPresent
args:
- "--csi-address=$(ADDRESS)"
@ -74,7 +74,7 @@ spec:
- name: socket-dir
mountPath: /csi
- name: external-resizer
image: quay.io/k8scsi/csi-resizer:v1.0.0
image: k8s.gcr.io/sig-storage/csi-resizer:v1.2.0
imagePullPolicy: IfNotPresent
args:
- "--csi-address=$(ADDRESS)"

View File

@ -91,7 +91,7 @@ spec:
resources:
{{- toYaml .Values.node.resources | nindent 12 }}
- name: node-driver-registrar
image: k8s.gcr.io/sig-storage/csi-node-driver-registrar:v2.0.1
image: k8s.gcr.io/sig-storage/csi-node-driver-registrar:v2.2.0
imagePullPolicy: IfNotPresent
args:
- --csi-address=$(ADDRESS)