Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release-1.2: Release 1.2.1 and chart 1.2.3 with cherry-picked helm chart changes #380 #412 #413 #414 #426 #429

Merged
merged 3 commits into from
Apr 29, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG-1.x.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# v1.2.1

### Bug fixes
* Revert efs-utils to 1.28.2 ([#385](https://github.com/kubernetes-sigs/aws-efs-csi-driver/pull/385), [@wongma7](https://github.com/wongma7))

# v1.2

## Notable changes
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

PKG=github.com/kubernetes-sigs/aws-efs-csi-driver
IMAGE?=amazon/aws-efs-csi-driver
VERSION=v1.2.0-dirty
VERSION=v1.2.1-dirty
GIT_COMMIT?=$(shell git rev-parse HEAD)
BUILD_DATE?=$(shell date -u +"%Y-%m-%dT%H:%M:%SZ")
EFS_CLIENT_SOURCE?=k8s
Expand Down
4 changes: 2 additions & 2 deletions charts/aws-efs-csi-driver/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v1
appVersion: "1.2.0"
appVersion: "1.2.1"
name: aws-efs-csi-driver
description: A Helm chart for AWS EFS CSI Driver
version: 1.2.2
version: 1.2.3
kubeVersion: ">=1.17.0-0"
home: https://github.com/kubernetes-sigs/aws-efs-csi-driver
sources:
Expand Down
11 changes: 11 additions & 0 deletions charts/aws-efs-csi-driver/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,14 @@ Create the name of the service account to use
{{ default "default" .Values.serviceAccount.controller.name }}
{{- end -}}
{{- end -}}

{{/*
Create a string out of the map for controller tags flag
*/}}
{{- define "aws-efs-csi-driver.tags" -}}
{{- $tags := list -}}
{{ range $key, $val := . }}
{{- $tags = print $key ":" $val | append $tags -}}
{{- end -}}
{{- join " " $tags -}}
{{- end -}}
11 changes: 7 additions & 4 deletions charts/aws-efs-csi-driver/templates/controller-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ spec:
annotations: {{ toYaml .Values.node.podAnnotations | nindent 8 }}
{{- end }}
spec:
hostNetwork: true
{{- if .Values.imagePullSecrets }}
imagePullSecrets:
{{- range .Values.imagePullSecrets }}
Expand Down Expand Up @@ -50,9 +51,11 @@ spec:
args:
- --endpoint=$(CSI_ENDPOINT)
- --logtostderr
- --v=5
# Uncomment below line to allow access point root directory to be deleted by controller.
#- --delete-access-point-root-dir
{{- if .Values.controller.tags }}
- --tags={{ include "aws-efs-csi-driver.tags" .Values.controller.tags }}
{{- end }}
- --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 @@ -75,7 +78,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
6 changes: 5 additions & 1 deletion charts/aws-efs-csi-driver/templates/storageclass.yaml
Original file line number Diff line number Diff line change
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
15 changes: 13 additions & 2 deletions charts/aws-efs-csi-driver/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ replicaCount: 2

image:
repository: amazon/aws-efs-csi-driver
tag: "v1.2.0"
tag: "v1.2.1"
pullPolicy: IfNotPresent

sidecars:
Expand Down Expand Up @@ -49,7 +49,7 @@ node:
podAnnotations: {}
tolerations: []

logLevel: 5
logLevel: 2

hostAliases:
{}
Expand Down Expand Up @@ -82,10 +82,21 @@ serviceAccount:

controller:
create: true
# Add additional tags to access points
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:
Expand Down
10 changes: 5 additions & 5 deletions deploy/kubernetes/base/controller-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ spec:
app.kubernetes.io/name: aws-efs-csi-driver
app.kubernetes.io/instance: kustomize
spec:
hostNetwork: true
nodeSelector:
kubernetes.io/os: linux
serviceAccountName: efs-csi-controller-sa
Expand All @@ -31,14 +32,13 @@ spec:
- name: efs-plugin
securityContext:
privileged: true
image: "amazon/aws-efs-csi-driver:v1.2.0"
image: "amazon/aws-efs-csi-driver:v1.2.1"
imagePullPolicy: IfNotPresent
args:
- --endpoint=$(CSI_ENDPOINT)
- --logtostderr
- --v=5
# Uncomment below line to allow access point root directory to be deleted by controller.
#- --delete-access-point-root-dir
- --v=2
- --delete-access-point-root-dir=false
env:
- name: CSI_ENDPOINT
value: unix:///var/lib/csi/sockets/pluginproxy/csi.sock
Expand All @@ -61,7 +61,7 @@ spec:
image: public.ecr.aws/eks-distro/kubernetes-csi/external-provisioner:v2.1.1-eks-1-18-2
args:
- --csi-address=$(ADDRESS)
- --v=5
- --v=2
- --feature-gates=Topology=true
- --leader-election
env:
Expand Down
8 changes: 4 additions & 4 deletions deploy/kubernetes/base/node-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ spec:
- name: efs-plugin
securityContext:
privileged: true
image: "amazon/aws-efs-csi-driver:v1.2.0"
image: "amazon/aws-efs-csi-driver:v1.2.1"
args:
- --endpoint=$(CSI_ENDPOINT)
- --logtostderr
- --v=5
- --v=2
env:
- name: CSI_ENDPOINT
value: unix:/csi/csi.sock
Expand Down Expand Up @@ -76,7 +76,7 @@ spec:
args:
- --csi-address=$(ADDRESS)
- --kubelet-registration-path=$(DRIVER_REG_SOCK_PATH)
- --v=5
- --v=2
env:
- name: ADDRESS
value: /csi/csi.sock
Expand All @@ -96,7 +96,7 @@ spec:
args:
- --csi-address=/csi/csi.sock
- --health-port=9809
- --v=5
- --v=2
volumeMounts:
- name: plugin-dir
mountPath: /csi
Expand Down
1 change: 1 addition & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ The following sections are Kubernetes specific. If you are a Kubernetes user, us
|EFS CSI Driver Version | Image |
|---------------------------|-------------------------------------|
|master branch |amazon/aws-efs-csi-driver:master |
|v1.2.1 |amazon/aws-efs-csi-driver:v1.2.1 |
|v1.2.0 |amazon/aws-efs-csi-driver:v1.2.0 |
|v1.1.1 |amazon/aws-efs-csi-driver:v1.1.1 |
|v1.1.0 |amazon/aws-efs-csi-driver:v1.1.0 |
Expand Down