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 set -ex
source .ci/common source .ci/common
K8S_VERSION=1.18.20 K8S_VERSION=1.19.12
MINIKUBE_VERSION=1.18.1 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/ 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 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/ 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 Kubernetes LocalPVs on Steroids
Prerequisite
---
- Kubernetes: 1.19+
Install Install
--- ---
`helm install -n kube-system rawfile-csi ./deploy/charts/rawfile-csi/` `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 kind: CSIDriver
metadata: metadata:
name: {{ .Values.provisionerName }} name: {{ .Values.provisionerName }}
spec: spec:
attachRequired: false attachRequired: false
podInfoOnMount: true podInfoOnMount: true
{{- if semverCompare ">=1.16" .Capabilities.KubeVersion.Version }} fsGroupPolicy: File
volumeLifecycleModes: volumeLifecycleModes:
- Persistent - Persistent
{{- end }}

View File

@ -61,7 +61,7 @@ spec:
resources: resources:
{{- toYaml .Values.controller.resources | nindent 12 }} {{- toYaml .Values.controller.resources | nindent 12 }}
- name: external-provisioner - 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 imagePullPolicy: IfNotPresent
args: args:
- "--csi-address=$(ADDRESS)" - "--csi-address=$(ADDRESS)"
@ -74,7 +74,7 @@ spec:
- name: socket-dir - name: socket-dir
mountPath: /csi mountPath: /csi
- name: external-resizer - 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 imagePullPolicy: IfNotPresent
args: args:
- "--csi-address=$(ADDRESS)" - "--csi-address=$(ADDRESS)"

View File

@ -91,7 +91,7 @@ spec:
resources: resources:
{{- toYaml .Values.node.resources | nindent 12 }} {{- toYaml .Values.node.resources | nindent 12 }}
- name: node-driver-registrar - 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 imagePullPolicy: IfNotPresent
args: args:
- --csi-address=$(ADDRESS) - --csi-address=$(ADDRESS)