feat: add support for volumeAttributes to aws-efs-csi-driver to allow to disable buggy TLS encryption

This commit is contained in:
Stefan Reimer 2021-04-08 16:19:51 +02:00
parent c912860b60
commit 4f9524c8b7
4 changed files with 5 additions and 32 deletions

View File

@ -1,7 +1,7 @@
apiVersion: v2
name: kubezero-aws-efs-csi-driver
description: KubeZero Umbrella Chart for aws-efs-csi-driver
version: 0.3.4
version: 0.3.5
appVersion: 1.2.0
kubeVersion: ">=1.18.0-0"
home: https://kubezero.com

View File

@ -1,21 +0,0 @@
{{- if .Values.PersistentVolume }}
{{- if .Values.PersistentVolume.create }}
apiVersion: v1
kind: PersistentVolume
metadata:
name: {{ default "kubezero-efs-pv" .Values.PersistentVolume.Name }}
labels:
{{ include "kubezero-lib.labels" . | indent 4 }}
spec:
capacity:
storage: 5Gi
volumeMode: Filesystem
accessModes:
- ReadWriteMany
persistentVolumeReclaimPolicy: Retain
storageClassName: efs-sc
csi:
driver: efs.csi.aws.com
volumeHandle: {{ .Values.PersistentVolume.EfsId }}
{{- end }}
{{- end }}

View File

@ -16,10 +16,10 @@ spec:
csi:
driver: efs.csi.aws.com
volumeHandle: {{ .volumeHandle }}
{{- with .mountOptions }}
mountOptions:
{{- . | toYaml | nindent 4 }}
{{- end }}
{{- with .volumeAttributes }}
volumeAttributes:
{{- . | toYaml | nindent 6 }}
{{- end }}
{{- with .claimRef }}
claimRef:
{{- . | toYaml | nindent 4 }}

View File

@ -31,9 +31,3 @@ StorageClass:
#
# - name: example-pv2
# volumeHandle: "<efs-id>:/path2"
# Deprecated and removed with next release
# PersistentVolume:
# create: false
# EfsId: ""
# Name: ""