Skip to content

Commit 92fdf69

Browse files
Squashed commit of the following:
commit 2dfd178 Author: Omer Aplatony <[email protected]> Date: Tue Nov 26 17:07:14 2024 +0200 revert Signed-off-by: Omer Aplatony <[email protected]> commit 3b7dbbd Author: Omer Aplatony <[email protected]> Date: Tue Nov 26 09:16:04 2024 +0200 Set default values Signed-off-by: Omer Aplatony <[email protected]> commit 508e32a Merge: a943df0 c963295 Author: Omer Aplatony <[email protected]> Date: Tue Nov 26 09:04:32 2024 +0200 Merged master Signed-off-by: Omer Aplatony <[email protected]> commit a943df0 Author: Omer Aplatony <[email protected]> Date: Sun Jul 7 10:06:27 2024 +0300 Add Pod Disruption Budget and configurable deployment name Signed-off-by: Omer Aplatony <[email protected]> Signed-off-by: Omer Aplatony <[email protected]> Apply suggestions from code review Co-authored-by: Sherif Abdel-Naby <[email protected]> Signed-off-by: Omer Aplatony <[email protected]>
1 parent c963295 commit 92fdf69

File tree

5 files changed

+37
-5
lines changed

5 files changed

+37
-5
lines changed

charts/aws-efs-csi-driver/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,4 +234,4 @@ for Controller deployment and Node daemonset
234234
* Fixing Controller deployment using `podAnnotations` and `tolerations` values from Node daemonset
235235
* Let the user define the whole `tolerations` array, default to `- operator: Exists`
236236
* Default `logLevel` lowered from `5` to `2`
237-
* Default `imagePullPolicy` everywhere set to `IfNotPresent`
237+
* Default `imagePullPolicy` everywhere set to `IfNotPresent`

charts/aws-efs-csi-driver/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ maintainers:
1515
- name: leakingtapan
1616
url: https://github.com/leakingtapan
1717
- name: krmichel
18-
url: https://github.com/krmichel
18+
url: https://github.com/krmichel

charts/aws-efs-csi-driver/templates/controller-deployment.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
kind: Deployment
44
apiVersion: apps/v1
55
metadata:
6-
name: efs-csi-controller
6+
name: {{ .Values.controller.name }}
77
labels:
88
app.kubernetes.io/name: {{ include "aws-efs-csi-driver.name" . }}
99
{{- with .Values.controller.additionalLabels }}
@@ -13,7 +13,7 @@ spec:
1313
replicas: {{ .Values.controller.replicaCount }}
1414
selector:
1515
matchLabels:
16-
app: efs-csi-controller
16+
app: {{ .Values.controller.name }}
1717
app.kubernetes.io/name: {{ include "aws-efs-csi-driver.name" . }}
1818
app.kubernetes.io/instance: {{ .Release.Name }}
1919
{{- with .Values.controller.updateStrategy }}
@@ -23,7 +23,7 @@ spec:
2323
template:
2424
metadata:
2525
labels:
26-
app: efs-csi-controller
26+
app: {{ .Values.controller.name }}
2727
app.kubernetes.io/name: {{ include "aws-efs-csi-driver.name" . }}
2828
app.kubernetes.io/instance: {{ .Release.Name }}
2929
{{- with .Values.controller.podLabels }}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{{- if .Values.controller.podDisruptionBudget.enabled -}}
2+
apiVersion: policy/v1
3+
kind: PodDisruptionBudget
4+
metadata:
5+
name: {{ .Values.controller.name }}
6+
namespace: {{ .Release.Namespace }}
7+
labels:
8+
{{- include "aws-ebs-csi-driver.labels" . | nindent 4 }}
9+
spec:
10+
selector:
11+
matchLabels:
12+
app: {{ .Values.controller.name }}
13+
app.kubernetes.io/name: {{ include "aws-efs-csi-driver.name" . }}
14+
app.kubernetes.io/instance: {{ .Release.Name }}
15+
{{- if .Values.controller.podDisruptionBudget.unhealthyPodEvictionPolicy }}
16+
unhealthyPodEvictionPolicy: {{ .Values.controller.podDisruptionBudget.unhealthyPodEvictionPolicy }}
17+
{{- end }}
18+
{{- if .Values.controller.podDisruptionBudget.maxUnavailable }}
19+
maxUnavailable: {{ .Values.controller.podDisruptionBudget.maxUnavailable }}
20+
{{- end }}
21+
{{- if .Values.controller.podDisruptionBudget.minAvailable }}
22+
minAvailable: {{ .Values.controller.podDisruptionBudget.minAvailable }}
23+
{{- end }}
24+
{{- end -}}

charts/aws-efs-csi-driver/values.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ imagePullSecrets: []
5151
controller:
5252
# Specifies whether a deployment should be created
5353
create: true
54+
# Name of the CSI controller service
55+
name: efs-csi-controller
5456
# Number of replicas for the CSI controller service deployment
5557
replicaCount: 2
5658
# Number for the log level verbosity
@@ -104,6 +106,12 @@ controller:
104106
# eks.amazonaws.com/role-arn: arn:aws:iam::111122223333:role/efs-csi-role
105107
healthPort: 9909
106108
regionalStsEndpoints: false
109+
# Pod Disruption Budget
110+
podDisruptionBudget:
111+
enabled: false
112+
# maxUnavailable: 1
113+
minAvailable: 1
114+
unhealthyPodEvictionPolicy: "Delete"
107115
# securityContext on the controller pod
108116
securityContext:
109117
runAsNonRoot: false

0 commit comments

Comments
 (0)