Skip to content

Commit

Permalink
Merge branch 'master' into feat/helm-add-controller-access-point-tags
Browse files Browse the repository at this point in the history
  • Loading branch information
KarstenSiemer committed Apr 21, 2021
2 parents 89075e5 + 00d2689 commit bdf7ce8
Show file tree
Hide file tree
Showing 9 changed files with 30 additions and 23 deletions.
2 changes: 1 addition & 1 deletion charts/aws-efs-csi-driver/Chart.yaml
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
appVersion: "1.2.0"
name: aws-efs-csi-driver
description: A Helm chart for AWS EFS CSI Driver
version: 1.2.2
version: 1.2.4
kubeVersion: ">=1.17.0-0"
home: https://github.com/kubernetes-sigs/aws-efs-csi-driver
sources:
Expand Down
2 changes: 1 addition & 1 deletion charts/aws-efs-csi-driver/templates/_helpers.tpl
Expand Up @@ -48,7 +48,7 @@ app.kubernetes.io/managed-by: {{ .Release.Service }}
Create the name of the service account to use
*/}}
{{- define "aws-efs-csi-driver.serviceAccountName" -}}
{{- if .Values.serviceAccount.controller.create -}}
{{- if .Values.controller.create -}}
{{ default (include "aws-efs-csi-driver.fullname" .) .Values.serviceAccount.controller.name }}
{{- else -}}
{{ default "default" .Values.serviceAccount.controller.name }}
Expand Down
Expand Up @@ -34,9 +34,7 @@ spec:
{{- with .Values.nodeSelector }}
{{- . | toYaml | nindent 8 }}
{{- end }}
{{- if .Values.serviceAccount.controller.create }}
serviceAccountName: {{ include "aws-efs-csi-driver.serviceAccountName" . }}
{{- end }}
priorityClassName: system-cluster-critical
tolerations:
- operator: Exists
Expand All @@ -52,12 +50,11 @@ spec:
args:
- --endpoint=$(CSI_ENDPOINT)
- --logtostderr
- --v=5
{{- if .Values.controller.tags }}
- --tags={{ include "aws-efs-csi-driver.tags" .Values.controller.tags }}
{{- end }}
# Uncomment below line to allow access point root directory to be deleted by controller.
#- --delete-access-point-root-dir
- --v={{ .Values.logLevel }}
- --delete-access-point-root-dir={{ hasKey .Values.controller "deleteAccessPointRootDir" | ternary .Values.controller.deleteAccessPointRootDir false }}
env:
- name: CSI_ENDPOINT
value: unix:///var/lib/csi/sockets/pluginproxy/csi.sock
Expand All @@ -80,7 +77,7 @@ spec:
image: {{ printf "%s:%s" .Values.sidecars.csiProvisionerImage.repository .Values.sidecars.csiProvisionerImage.tag }}
args:
- --csi-address=$(ADDRESS)
- --v=5
- --v={{ .Values.logLevel }}
- --feature-gates=Topology=true
- --leader-election
env:
Expand Down
@@ -1,4 +1,4 @@
{{- if .Values.serviceAccount.controller.create -}}
{{- if .Values.serviceAccount.controller.create }}
apiVersion: v1
kind: ServiceAccount
metadata:
Expand All @@ -9,6 +9,7 @@ metadata:
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
---

kind: ClusterRole
Expand Down Expand Up @@ -56,4 +57,3 @@ roleRef:
kind: ClusterRole
name: efs-csi-external-provisioner-role
apiGroup: rbac.authorization.k8s.io
{{- end }}
6 changes: 5 additions & 1 deletion charts/aws-efs-csi-driver/templates/storageclass.yaml
Expand Up @@ -3,9 +3,13 @@ kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
name: {{ .name }}
{{- with .annotations }}
annotations:
{{ toYaml . | indent 4 }}
{{- end }}
provisioner: efs.csi.aws.com
{{- with .mountOptions }}
mountOptions:
mountOptions:
{{ toYaml . }}
{{- end }}
{{- with .parameters }}
Expand Down
14 changes: 10 additions & 4 deletions charts/aws-efs-csi-driver/values.yaml
Expand Up @@ -12,13 +12,13 @@ image:
sidecars:
livenessProbeImage:
repository: public.ecr.aws/eks-distro/kubernetes-csi/livenessprobe
tag: v2.1.0-eks-1-18-1
tag: v2.2.0-eks-1-18-2
nodeDriverRegistrarImage:
repository: public.ecr.aws/eks-distro/kubernetes-csi/node-driver-registrar
tag: v2.0.1-eks-1-18-1
tag: v2.1.0-eks-1-18-2
csiProvisionerImage:
repository: public.ecr.aws/eks-distro/kubernetes-csi/external-provisioner
tag: v2.0.3-eks-1-18-1
tag: v2.1.1-eks-1-18-2

imagePullSecrets: []
nameOverride: ""
Expand Down Expand Up @@ -86,15 +86,21 @@ controller:
tags: {}
# environment: prod
# region: us-east-1
# Enable if you want the controller to also delete the
# path on efs when deleteing an access point
deleteAccessPointRootDir: false

storageClasses: []
# Add StorageClass resources like:
# - name: efs-sc
## Use that annotation if you want this to your default storageclass
# annotations:
# storageclass.kubernetes.io/is-default-class: "true"
# mountOptions:
# - tls
# parameters:
# provisioningMode: efs-ap
# fileSystemId: fs-92107410
# fileSystemId: fs-1122aabb
# directoryPerms: "700"
# gidRangeStart: "1000"
# gidRangeEnd: "2000"
Expand Down
4 changes: 2 additions & 2 deletions deploy/kubernetes/base/controller-deployment.yaml
Expand Up @@ -58,7 +58,7 @@ spec:
periodSeconds: 10
failureThreshold: 5
- name: csi-provisioner
image: public.ecr.aws/eks-distro/kubernetes-csi/external-provisioner:v2.0.3-eks-1-18-1
image: public.ecr.aws/eks-distro/kubernetes-csi/external-provisioner:v2.1.1-eks-1-18-2
args:
- --csi-address=$(ADDRESS)
- --v=5
Expand All @@ -71,7 +71,7 @@ spec:
- name: socket-dir
mountPath: /var/lib/csi/sockets/pluginproxy/
- name: liveness-probe
image: public.ecr.aws/eks-distro/kubernetes-csi/livenessprobe:v2.1.0-eks-1-18-1
image: public.ecr.aws/eks-distro/kubernetes-csi/livenessprobe:v2.2.0-eks-1-18-2
args:
- --csi-address=/csi/csi.sock
- --health-port=9808
Expand Down
4 changes: 2 additions & 2 deletions deploy/kubernetes/base/node-daemonset.yaml
Expand Up @@ -72,7 +72,7 @@ spec:
periodSeconds: 2
failureThreshold: 5
- name: csi-driver-registrar
image: public.ecr.aws/eks-distro/kubernetes-csi/node-driver-registrar:v2.0.1-eks-1-18-1
image: public.ecr.aws/eks-distro/kubernetes-csi/node-driver-registrar:v2.1.0-eks-1-18-2
args:
- --csi-address=$(ADDRESS)
- --kubelet-registration-path=$(DRIVER_REG_SOCK_PATH)
Expand All @@ -92,7 +92,7 @@ spec:
- name: registration-dir
mountPath: /registration
- name: liveness-probe
image: public.ecr.aws/eks-distro/kubernetes-csi/livenessprobe:v2.1.0-eks-1-18-1
image: public.ecr.aws/eks-distro/kubernetes-csi/livenessprobe:v2.2.0-eks-1-18-2
args:
- --csi-address=/csi/csi.sock
- --health-port=9809
Expand Down
8 changes: 4 additions & 4 deletions deploy/kubernetes/overlays/stable/kustomization.yaml
Expand Up @@ -5,9 +5,9 @@ bases:
images:
- name: amazon/aws-efs-csi-driver
newTag: v1.2.0
- name: public.ecr.aws/eks-distro/kubernetes-csi/external-provisioner
newTag: v2.0.3-eks-1-18-1
- name: public.ecr.aws/eks-distro/kubernetes-csi/livenessprobe
newTag: v2.1.0-eks-1-18-1
newTag: v2.2.0-eks-1-18-2
- name: public.ecr.aws/eks-distro/kubernetes-csi/node-driver-registrar
newTag: v2.0.1-eks-1-18-1
newTag: v2.1.0-eks-1-18-2
- name: public.ecr.aws/eks-distro/kubernetes-csi/external-provisioner
newTag: v2.1.1-eks-1-18-2

0 comments on commit bdf7ce8

Please sign in to comment.