Skip to content

Commit a5ba127

Browse files
authored
Merge pull request #454 from Trickybrain/inactive-pr
Add podLabels parameter Original work by bueti in PR 416 and Allow timeout to be set Original work by coolstim in PR 435
2 parents 3bf1b79 + fd9e97c commit a5ba127

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ spec:
1919
labels:
2020
app: fsx-csi-controller
2121
{{- include "aws-fsx-csi-driver.labels" . | nindent 8 }}
22+
{{- if .Values.controller.podLabels }}
23+
{{- toYaml .Values.controller.podLabels | nindent 8 }}
24+
{{- end }}
2225
spec:
2326
{{- if .Values.imagePullSecrets }}
2427
imagePullSecrets:
@@ -96,7 +99,7 @@ spec:
9699
args:
97100
- --csi-address=$(ADDRESS)
98101
- --v={{ .Values.sidecars.provisioner.logLevel }}
99-
- --timeout=5m
102+
- --timeout={{ .Values.controller.timeout| default "5m" }}
100103
- --extra-create-metadata
101104
- --leader-election=true
102105
env:

charts/aws-fsx-csi-driver/templates/node-daemonset.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ spec:
2222
labels:
2323
app: fsx-csi-node
2424
{{- include "aws-fsx-csi-driver.labels" . | nindent 8 }}
25+
{{- if .Values.node.podLabels }}
26+
{{- toYaml .Values.node.podLabels | nindent 8 }}
27+
{{- end }}
2528
spec:
2629
{{- if .Values.imagePullSecrets }}
2730
imagePullSecrets:

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ controller:
103103
- effect: NoExecute
104104
operator: Exists
105105
tolerationSeconds: 300
106+
# Specify the timeout of all calls to the CSI driver.
107+
timeout: 5m
106108
# securityContext on the controller pod
107109
securityContext:
108110
runAsNonRoot: false
@@ -126,6 +128,7 @@ controller:
126128
values:
127129
- fargate
128130
- hybrid
131+
podLabels: {}
129132
# topologySpreadConstraints:
130133
# - maxSkew: 1
131134
# topologyKey: topology.kubernetes.io/zone
@@ -200,6 +203,7 @@ node:
200203
values:
201204
- fargate
202205
- hybrid
206+
podLabels: {}
203207

204208
nameOverride: ""
205209
fullnameOverride: ""

0 commit comments

Comments
 (0)